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