17 references to WRN_CLS_BadTypeVar
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
566this.AddDiagnostic(ErrorCode.WRN_CLS_BadTypeVar, typeParameter.GetFirstLocation(), constraintType.Type);
Errors\ErrorFacts.cs (2)
402case ErrorCode.WRN_CLS_BadTypeVar: 1541or 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)
1027Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1030Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "U").WithArguments("Bad"), 1033Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1036Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "U").WithArguments("Bad"), 1039Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("Bad"), 1042Diagnostic(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)
19361Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("TestClass"), 19364Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("ITest"), 19367Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("ITest"), 19370Diagnostic(ErrorCode.WRN_CLS_BadTypeVar, "T").WithArguments("TestClass"));