17 references to WRN_CLS_BadTypeVar
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
559this.AddDiagnostic(ErrorCode.WRN_CLS_BadTypeVar, typeParameter.Locations[0], constraintType.Type);
Errors\ErrorFacts.cs (2)
389case ErrorCode.WRN_CLS_BadTypeVar: 1480case ErrorCode.WRN_CLS_BadTypeVar:
Generated\ErrorFacts.Generated.cs (1)
147case ErrorCode.WRN_CLS_BadTypeVar:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\Source\ClsComplianceTests.cs (9)
1028Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1031Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "U").WithArguments("Bad"), 1034Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1037Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "U").WithArguments("Bad"), 1040Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1043Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "U").WithArguments("Bad")); 3528Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("N1.NonCompliant"), 3531Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("N2.NonCompliant"), 3578Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("N1.NonCompliant"),
Symbols\SymbolErrorTests.cs (4)
19216Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("TestClass"), 19219Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("ITest"), 19222Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("ITest"), 19225Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("TestClass"));