22 references to WRN_CLS_BadReturnType
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
732code = ErrorCode.WRN_CLS_BadReturnType;
Errors\ErrorFacts.cs (2)
384case ErrorCode.WRN_CLS_BadReturnType: 1521or 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)
648Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").WithLocation(8, 23) 656Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method2").WithArguments("C.Method2()").WithLocation(8, 23), 659Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "Method").WithArguments("C.Method()").WithLocation(7, 23) 895Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("A.M1()")); 944Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("A.M1()")); 1184Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M1").WithArguments("C1.M1()"), 1187Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M2").WithArguments("C1.M2()"), 1190Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M3").WithArguments("C1.M3()"), 1193Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M4").WithArguments("C1.M4()"), 1196Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M5").WithArguments("C1.M5()"), 1199Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M6").WithArguments("C1.M6()"), 1202Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "M7").WithArguments("C1.M7()")); 1231Diagnostic(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)
18938Diagnostic(ErrorCode.WRN_CLS_BadReturnType, "bad").WithArguments("a.bad()"));