22 references to WRN_CLS_BadReturnType
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
725code = ErrorCode.WRN_CLS_BadReturnType;
Errors\ErrorFacts.cs (2)
371case ErrorCode.WRN_CLS_BadReturnType: 1460case ErrorCode.WRN_CLS_BadReturnType:
Generated\ErrorFacts.Generated.cs (1)
127case ErrorCode.WRN_CLS_BadReturnType:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Symbols\Source\ClsComplianceTests.cs (17)
649Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").WithLocation(8, 23) 657Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").WithLocation(8, 23), 660Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method").WithArguments("C.Method()").WithLocation(7, 23) 896Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("A.M1()")); 945Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("A.M1()")); 1185Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("C1.M1()"), 1188Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M2").WithArguments("C1.M2()"), 1191Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M3").WithArguments("C1.M3()"), 1194Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M4").WithArguments("C1.M4()"), 1197Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M5").WithArguments("C1.M5()"), 1200Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M6").WithArguments("C1.M6()"), 1203Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M7").WithArguments("C1.M7()")); 1232Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "D").WithArguments("C1.D")); 3221Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M").WithArguments("Test.M()")); 3522Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M").WithArguments("N1.Compliant.M<T>(N1.NonCompliant)"), 3525Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M").WithArguments("N2.Compliant.M<T>(N2.NonCompliant)"), 3572Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M").WithArguments("N1.Compliant.M<T>(N1.NonCompliant)"),
Symbols\SymbolErrorTests.cs (1)
18793Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "bad").WithArguments("a.bad()"));