29 references to ERR_RestrictedType1
Microsoft.CodeAnalysis.VisualBasic (20)
Binding\Binder_AnonymousTypes.vb (2)
33ReportDiagnostic(diagnostics, field.Location, ERRID.ERR_RestrictedType1, restrictedType) 253ReportDiagnostic(diagnostics, initExpression, ERRID.ERR_RestrictedType1, restrictedType)
Binding\Binder_Conversions.vb (2)
1560ERRID.ERR_RestrictedType1, restrictedType) 1578ReportDiagnostic(diagnostics, location, ERRID.ERR_RestrictedType1, restrictedType)
Binding\Binder_Expressions.vb (1)
1584ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_RestrictedType1, targetElementType)
Binding\Binder_Lambda.vb (6)
47ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_RestrictedType1, returnType) 272ERRID.ERR_RestrictedType1, restrictedType) 290ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType) 805ReportDiagnostic(diagnostics, sourceParameter.TypeSyntax, ERRID.ERR_RestrictedType1, parameters(i).Type) 949ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType) 964ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
Binding\Binder_Statements.vb (2)
1129ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, restrictedType) 1134ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, type)
Binding\Binder_Utils.vb (2)
1096ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType) 1100ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, paramType)
Errors\ErrorFacts.vb (1)
721ERRID.ERR_RestrictedType1,
Symbols\ConstraintsHelper.vb (1)
649diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_RestrictedType1, typeArgument)))
Symbols\Source\SourceMemberFieldSymbol.vb (1)
129binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
Symbols\Source\SourceMethodSymbol.vb (1)
2303binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
Symbols\Source\SourcePropertySymbol.vb (1)
379Binder.ReportDiagnostic(diagnostics, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Binding\GenericsTests.vb (1)
245compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "RuntimeArgumentHandle()").WithArguments("System.RuntimeArgumentHandle"))
Semantics\ArrayLiteralTests.vb (6)
543Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 544Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator")) 548Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 549Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator"), 555Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 556Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator"),
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
StaticLocalDeclarationTests.vb (2)
676compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "ArgIterator").WithArguments("System.ArgIterator"), 702compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "TypedReference").WithArguments("System.TypedReference"))