6 references to ERR_AsMustHaveReferenceType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
3682
Error(diagnostics, ErrorCode.
ERR_AsMustHaveReferenceType
, node, targetType);
Errors\ErrorFacts.cs (1)
629
case ErrorCode.
ERR_AsMustHaveReferenceType
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Semantics\PatternMatchingTests.cs (1)
12274
Diagnostic(ErrorCode.
ERR_AsMustHaveReferenceType
, "x1 as G<object>").WithArguments("G<object>").WithLocation(6, 18),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\OperatorTests.cs (2)
5940
Diagnostic(ErrorCode.
ERR_AsMustHaveReferenceType
, "1 as Bar").WithArguments("Bar"),
6012
Diagnostic(ErrorCode.
ERR_AsMustHaveReferenceType
, "e as IntPtr").WithArguments("System.IntPtr"));
Semantics\SemanticErrorTests.cs (1)
22620
Diagnostic(ErrorCode.
ERR_AsMustHaveReferenceType
, "i2 as int").WithArguments("int"),