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