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