52 references to ERR_BadArity
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Lookup.cs (2)
1785
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadArity
, namedType, MessageID.IDS_SK_TYPE.Localize(), namedType.Arity) : null;
1806
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadArity
, method, MessageID.IDS_SK_METHOD.Localize(), method.Arity) : null;
Binder\Binder_Symbols.cs (2)
1376
Error(diagnostics, ErrorCode.
ERR_BadArity
, typeSyntax, type, MessageID.IDS_SK_TYPE.Localize(), typeArgumentsSyntax.Count);
1411
Error(diagnostics, ErrorCode.
ERR_BadArity
, syntax, plainName, MessageID.IDS_MethodGroup.Localize(), typeArgumentsSyntax.Count);
Errors\ErrorFacts.cs (1)
788
case ErrorCode.
ERR_BadArity
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
Attributes\AttributeTests.cs (15)
7632
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(6, 2));
7667
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(7, 2),
7670
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(8, 2),
7682
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen3").WithArguments("Gen3<T>", "type", "1").WithLocation(11, 2));
7711
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(3, 2));
7721
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(3, 2));
8320
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<U>", "type", "1").WithLocation(6, 2));
8610
Diagnostic(ErrorCode.
ERR_BadArity
, "B").WithArguments("B<T>", "type", "1").WithLocation(6, 2),
8625
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<T, U>", "type", "2").WithLocation(9, 2),
8628
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T, U>", "type", "2").WithLocation(10, 2),
8634
Diagnostic(ErrorCode.
ERR_BadArity
, "C<int>").WithArguments("C<T, U>", "type", "2").WithLocation(11, 2),
8667
Diagnostic(ErrorCode.
ERR_BadArity
, "B").WithArguments("B<T>", "type", "1").WithLocation(6, 2),
8676
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<T, U>", "type", "2").WithLocation(9, 2),
8679
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T, U>", "type", "2").WithLocation(10, 2),
8682
Diagnostic(ErrorCode.
ERR_BadArity
, "C<int>").WithArguments("C<T, U>", "type", "2").WithLocation(11, 2),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\BindingTests.cs (6)
127
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").WithLocation(9, 9),
129
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").WithLocation(10, 11),
135
Diagnostic(ErrorCode.
ERR_BadArity
, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").WithLocation(13, 9),
137
Diagnostic(ErrorCode.
ERR_BadArity
, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").WithLocation(14, 14),
1799
Diagnostic(ErrorCode.
ERR_BadArity
, "A<int, int>").WithArguments("N.A<T>", "type", "1"),
1802
Diagnostic(ErrorCode.
ERR_BadArity
, "A").WithArguments("N.A<T>", "type", "1"),
Semantics\MethodTypeInferenceTests.cs (1)
635
Diagnostic(ErrorCode.
ERR_BadArity
, "Goo<>").WithArguments("Program.Goo<T, U>(T, U)", "method", "2"));
Semantics\NameOfTests.cs (2)
252
Diagnostic(ErrorCode.
ERR_BadArity
, "Action<>").WithArguments("System.Action<T>", "type", "1").WithLocation(11, 27),
285
Diagnostic(ErrorCode.
ERR_BadArity
, "Test<>").WithArguments("Test<T>", "type", "1").WithLocation(32, 20),
Semantics\NullableReferenceTypesTests.cs (2)
140873
Diagnostic(ErrorCode.
ERR_BadArity
, "FromA<TResult>").WithArguments("ResultExtensions.FromA<A, B>(A)", "method", "2").WithLocation(10, 24));
151906
Diagnostic(ErrorCode.
ERR_BadArity
, "C<System.Nullable<T?> x").WithArguments("C<T>", "type", "1").WithLocation(11, 32),
Semantics\SemanticAnalyzerTests.cs (1)
476
Diagnostic(ErrorCode.
ERR_BadArity
, "Generic<int, int>").WithArguments("P.Generic<T>()", "method", "1").WithLocation(122, 11),
Semantics\SemanticErrorTests.cs (5)
9824
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<int, >").WithArguments("NormalType.M1<T1>(T1, T1)", "method", "1"));
23341
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T>", "type", "1"));
23358
Diagnostic(ErrorCode.
ERR_BadArity
, "M<>").WithArguments("M", "method group", "1"));
23378
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("A.C<T>", "type", "1"));
23395
Diagnostic(ErrorCode.
ERR_BadArity
, "C.M<>").WithArguments("M", "method group", "1"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\ExtensionMethodTests.cs (2)
692
Diagnostic(ErrorCode.
ERR_BadArity
, "M5<string, string>").WithArguments("N1.N2.C.M5<T>(T, int)", "method", "1").WithLocation(14, 22),
1967
Diagnostic(ErrorCode.
ERR_BadArity
, "E<int, int>").WithArguments("C.E<T>()", "method", "1").WithLocation(8, 14)
Symbols\GenericConstraintTests.cs (8)
7156
Diagnostic(ErrorCode.
ERR_BadArity
, "provider.GetService<>").WithArguments("GetService", "method group", "1").WithLocation(26, 9),
7159
Diagnostic(ErrorCode.
ERR_BadArity
, "provider.GetService<>").WithArguments("GetService", "method group", "1").WithLocation(27, 9),
7165
Diagnostic(ErrorCode.
ERR_BadArity
, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").WithLocation(32, 18),
7171
Diagnostic(ErrorCode.
ERR_BadArity
, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").WithLocation(33, 18)
7264
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").WithLocation(11, 9),
7267
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").WithLocation(12, 9),
7270
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").WithLocation(13, 9),
7273
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").WithLocation(14, 9)
Symbols\SymbolErrorTests.cs (3)
4309
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 5, Column = 19 },
4312
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 17, Column = 9 },
4313
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 18, Column = 16 });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\NameParsingTests.cs (2)
915
Diagnostic(ErrorCode.
ERR_BadArity
, "M<,>").WithArguments("M", "method group", "2").WithLocation(5, 9));
1016
Diagnostic(ErrorCode.
ERR_BadArity
, "M<,>").WithArguments("M", "method group", "2").WithLocation(5, 9),