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