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