28 references to WRN_CLS_BadArgType
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
580this.AddDiagnostic(ErrorCode.WRN_CLS_BadArgType, parameter.GetFirstLocation(), parameter.Type);
Errors\ErrorFacts.cs (2)
383case ErrorCode.WRN_CLS_BadArgType: 1520or ErrorCode.WRN_CLS_BadArgType
Generated\ErrorFacts.Generated.cs (1)
126case ErrorCode.WRN_CLS_BadArgType:
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
11315Diagnostic(ErrorCode.WRN_CLS_BadArgType, "i") 11340Diagnostic(ErrorCode.WRN_CLS_BadArgType, "i")
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\FunctionPointerTests.cs (1)
3773Diagnostic(ErrorCode.WRN_CLS_BadArgType, "m").WithArguments("delegate*<void>").WithLocation(9, 43)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\Source\ClsComplianceTests.cs (20)
1274Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad"), 1277Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Generic<Bad>"), 1280Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Generic<Generic<Bad>>"), 1283Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad[]"), 1286Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad[][]"), 1289Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad[*,*]"), 1292Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("int*")); 1325Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad"), 1328Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad"), 1331Diagnostic(ErrorCode.WRN_CLS_BadArgType, "b").WithArguments("Bad")); 1367Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("C<int>.N"), 1370Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("C<ulong>.N"), 1373Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("C<int>.N")); 1401Diagnostic(ErrorCode.WRN_CLS_BadArgType, "p").WithArguments("C1<int>.C2<U>"), 1404Diagnostic(ErrorCode.WRN_CLS_BadArgType, "p").WithArguments("C1<int>.C2<U>.C3<V>")); 2938Diagnostic(ErrorCode.WRN_CLS_BadArgType, "t").WithArguments("int*[]")); 3189Assert.Equal(ErrorCode.WRN_CLS_BadArgType, (ErrorCode)comp.GetDeclarationDiagnostics().Single().Code); 3534Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("N1.NonCompliant"), 3537Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("N2.NonCompliant"), 3575Diagnostic(ErrorCode.WRN_CLS_BadArgType, "n").WithArguments("N1.NonCompliant"),
Symbols\SymbolErrorTests.cs (1)
18917Diagnostic(ErrorCode.WRN_CLS_BadArgType, "i").WithArguments("ushort"));