21 references to ERR_AsWithTypeVar
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
5173
Error(diagnostics, ErrorCode.
ERR_AsWithTypeVar
, node, targetType);
Errors\ErrorFacts.cs (1)
870
or ErrorCode.
ERR_AsWithTypeVar
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
RefStructInterfacesTests.cs (12)
25679
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
25744
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13)
25778
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
25825
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(7, 13),
25828
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as U").WithArguments("U").WithLocation(15, 13)
25880
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(8, 13),
25883
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as U").WithArguments("U").WithLocation(17, 13)
25924
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26013
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(8, 13),
26016
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as T").WithArguments("T").WithLocation(12, 13)
26050
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26093
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NullableReferenceTypesTests.cs (1)
130832
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "t as U").WithArguments("U").WithLocation(16, 14),
Semantics\SemanticErrorTests.cs (5)
10718
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T1").WithArguments("T1").WithLocation(13, 13),
10720
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T3").WithArguments("T3").WithLocation(15, 13),
10722
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T4").WithArguments("T4").WithLocation(16, 13),
10724
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T5").WithArguments("T5").WithLocation(17, 13),
10726
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T7").WithArguments("T7").WithLocation(19, 13));
Semantics\UnsafeTests.cs (1)
11965
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "p as T").WithArguments("T"),