21 references to ERR_AsWithTypeVar
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
5205
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)
26075
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26140
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13)
26174
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26221
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(7, 13),
26224
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as U").WithArguments("U").WithLocation(15, 13)
26276
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(8, 13),
26279
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as U").WithArguments("U").WithLocation(17, 13)
26320
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26409
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as U").WithArguments("U").WithLocation(8, 13),
26412
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h2 as T").WithArguments("T").WithLocation(12, 13)
26446
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
26489
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "h1 as T").WithArguments("T").WithLocation(7, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NullableReferenceTypesTests.cs (1)
130854
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "t as U").WithArguments("U").WithLocation(16, 14),
Semantics\SemanticErrorTests.cs (5)
10763
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T1").WithArguments("T1").WithLocation(13, 13),
10765
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T3").WithArguments("T3").WithLocation(15, 13),
10767
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T4").WithArguments("T4").WithLocation(16, 13),
10769
Diagnostic(ErrorCode.
ERR_AsWithTypeVar
, "o as T5").WithArguments("T5").WithLocation(17, 13),
10771
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"),