9 references to ERR_AsWithTypeVar
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
3674Error(diagnostics, ErrorCode.ERR_AsWithTypeVar, node, targetType);
Errors\ErrorFacts.cs (1)
808case ErrorCode.ERR_AsWithTypeVar:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NullableReferenceTypesTests.cs (1)
127062Diagnostic(ErrorCode.ERR_AsWithTypeVar, "t as U").WithArguments("U").WithLocation(16, 14),
Semantics\SemanticErrorTests.cs (5)
10714Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T1").WithArguments("T1").WithLocation(13, 13), 10716Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T3").WithArguments("T3").WithLocation(15, 13), 10718Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T4").WithArguments("T4").WithLocation(16, 13), 10720Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T5").WithArguments("T5").WithLocation(17, 13), 10722Diagnostic(ErrorCode.ERR_AsWithTypeVar, "o as T7").WithArguments("T7").WithLocation(19, 13));
Semantics\UnsafeTests.cs (1)
9113Diagnostic(ErrorCode.ERR_AsWithTypeVar, "p as T").WithArguments("T"),