17 references to WRN_CLS_BadTypeVar
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
566
this.AddDiagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, typeParameter.GetFirstLocation(), constraintType.Type);
Errors\ErrorFacts.cs (2)
402
case ErrorCode.
WRN_CLS_BadTypeVar
:
1541
or ErrorCode.
WRN_CLS_BadTypeVar
Generated\ErrorFacts.Generated.cs (1)
147
case ErrorCode.
WRN_CLS_BadTypeVar
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\Source\ClsComplianceTests.cs (9)
1027
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("Bad"),
1030
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "U").WithArguments("Bad"),
1033
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("Bad"),
1036
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "U").WithArguments("Bad"),
1039
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("Bad"),
1042
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "U").WithArguments("Bad"));
3528
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("N1.NonCompliant"),
3531
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("N2.NonCompliant"),
3578
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("N1.NonCompliant"),
Symbols\SymbolErrorTests.cs (4)
19361
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("TestClass"),
19364
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("ITest"),
19367
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("ITest"),
19370
Diagnostic(ErrorCode.
WRN_CLS_BadTypeVar
, "T").WithArguments("TestClass"));