28 references to WRN_CLS_BadArgType
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
573
this.AddDiagnostic(ErrorCode.
WRN_CLS_BadArgType
, parameter.Locations[0], parameter.Type);
Errors\ErrorFacts.cs (2)
370
case ErrorCode.
WRN_CLS_BadArgType
:
1459
case ErrorCode.
WRN_CLS_BadArgType
:
Generated\ErrorFacts.Generated.cs (1)
126
case ErrorCode.
WRN_CLS_BadArgType
:
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
11059
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "i")
11084
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "i")
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\FunctionPointerTests.cs (1)
3752
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "m").WithArguments("delegate*<void>").WithLocation(9, 43)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\Source\ClsComplianceTests.cs (20)
1275
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad"),
1278
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Generic<Bad>"),
1281
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Generic<Generic<Bad>>"),
1284
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad[]"),
1287
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad[][]"),
1290
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad[*,*]"),
1293
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("int*"));
1326
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad"),
1329
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad"),
1332
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "b").WithArguments("Bad"));
1368
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "n").WithArguments("C<int>.N"),
1371
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "n").WithArguments("C<ulong>.N"),
1374
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "n").WithArguments("C<int>.N"));
1402
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "p").WithArguments("C1<int>.C2<U>"),
1405
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "p").WithArguments("C1<int>.C2<U>.C3<V>"));
2939
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)
18772
Diagnostic(ErrorCode.
WRN_CLS_BadArgType
, "i").WithArguments("ushort"));