53 references to ERR_BadArity
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Lookup.cs (2)
1877
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadArity
, namedType, MessageID.IDS_SK_TYPE.Localize(), namedType.Arity) : null;
1898
diagInfo = diagnose ? new CSDiagnosticInfo(ErrorCode.
ERR_BadArity
, method, MessageID.IDS_SK_METHOD.Localize(), method.Arity) : null;
Binder\Binder_Symbols.cs (2)
1407
Error(diagnostics, ErrorCode.
ERR_BadArity
, typeSyntax, type, MessageID.IDS_SK_TYPE.Localize(), typeArgumentsSyntax.Count);
1439
Error(diagnostics, ErrorCode.
ERR_BadArity
, syntax, plainName, MessageID.IDS_MethodGroup.Localize(), typeArgumentsSyntax.Count);
Errors\ErrorFacts.cs (1)
850
or ErrorCode.
ERR_BadArity
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Attributes\AttributeTests.cs (15)
7930
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(6, 2));
7965
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(7, 2),
7968
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(8, 2),
7980
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen3").WithArguments("Gen3<T>", "type", "1").WithLocation(11, 2));
8009
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(3, 2));
8019
Diagnostic(ErrorCode.
ERR_BadArity
, "Gen2").WithArguments("Gen2<T>", "type", "1").WithLocation(3, 2));
8618
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<U>", "type", "1").WithLocation(6, 2));
8910
Diagnostic(ErrorCode.
ERR_BadArity
, "B").WithArguments("B<T>", "type", "1").WithLocation(6, 2),
8925
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<T, U>", "type", "2").WithLocation(9, 2),
8928
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T, U>", "type", "2").WithLocation(10, 2),
8934
Diagnostic(ErrorCode.
ERR_BadArity
, "C<int>").WithArguments("C<T, U>", "type", "2").WithLocation(11, 2),
8967
Diagnostic(ErrorCode.
ERR_BadArity
, "B").WithArguments("B<T>", "type", "1").WithLocation(6, 2),
8976
Diagnostic(ErrorCode.
ERR_BadArity
, "C").WithArguments("C<T, U>", "type", "2").WithLocation(9, 2),
8979
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T, U>", "type", "2").WithLocation(10, 2),
8982
Diagnostic(ErrorCode.
ERR_BadArity
, "C<int>").WithArguments("C<T, U>", "type", "2").WithLocation(11, 2),
FlowAnalysis\FlowDiagnosticTests.cs (1)
864
Diagnostic(ErrorCode.
ERR_BadArity
, "goo<,int>").WithArguments("Program.goo<T>(int)", "method", "1").WithLocation(6, 17),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
Semantics\BindingTests.cs (6)
128
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").WithLocation(9, 9),
130
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<object, object>").WithArguments("C.M1<T>()", "method", "1").WithLocation(10, 11),
136
Diagnostic(ErrorCode.
ERR_BadArity
, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").WithLocation(13, 9),
138
Diagnostic(ErrorCode.
ERR_BadArity
, "M3<object, object>").WithArguments("C.M3<T>()", "method", "1").WithLocation(14, 14),
1832
Diagnostic(ErrorCode.
ERR_BadArity
, "A<int, int>").WithArguments("N.A<T>", "type", "1"),
1835
Diagnostic(ErrorCode.
ERR_BadArity
, "A").WithArguments("N.A<T>", "type", "1"),
Semantics\MethodTypeInferenceTests.cs (1)
636
Diagnostic(ErrorCode.
ERR_BadArity
, "Goo<>").WithArguments("Program.Goo<T, U>(T, U)", "method", "2"));
Semantics\NameOfTests.cs (3)
2539
Diagnostic(ErrorCode.
ERR_BadArity
, "Dictionary<>").WithArguments("System.Collections.Generic.Dictionary<TKey, TValue>", "type", "2").WithLocation(4, 16));
2557
Diagnostic(ErrorCode.
ERR_BadArity
, "List<,>").WithArguments("System.Collections.Generic.List<T>", "type", "1").WithLocation(4, 16));
2807
Diagnostic(ErrorCode.
ERR_BadArity
, "IGoo.M<>").WithArguments("M", "method group", "1").WithLocation(3, 16));
Semantics\NullableReferenceTypesTests.cs (1)
145202
Diagnostic(ErrorCode.
ERR_BadArity
, "FromA<TResult>").WithArguments("ResultExtensions.FromA<A, B>(A)", "method", "2").WithLocation(10, 24));
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)
9828
Diagnostic(ErrorCode.
ERR_BadArity
, "M1<int, >").WithArguments("NormalType.M1<T1>(T1, T1)", "method", "1"));
23597
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("C<T>", "type", "1"));
23614
Diagnostic(ErrorCode.
ERR_BadArity
, "M<>").WithArguments("M", "method group", "1"));
23634
Diagnostic(ErrorCode.
ERR_BadArity
, "C<>").WithArguments("A.C<T>", "type", "1"));
23651
Diagnostic(ErrorCode.
ERR_BadArity
, "C.M<>").WithArguments("M", "method group", "1"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Symbols\ExtensionMethodTests.cs (2)
690
Diagnostic(ErrorCode.
ERR_BadArity
, "M5<string, string>").WithArguments("N1.N2.C.M5<T>(T, int)", "method", "1").WithLocation(14, 22),
1962
Diagnostic(ErrorCode.
ERR_BadArity
, "E<int, int>").WithArguments("C.E<T>()", "method", "1").WithLocation(8, 14)
Symbols\GenericConstraintTests.cs (8)
7183
Diagnostic(ErrorCode.
ERR_BadArity
, "provider.GetService<>").WithArguments("GetService", "method group", "1").WithLocation(26, 9),
7186
Diagnostic(ErrorCode.
ERR_BadArity
, "provider.GetService<>").WithArguments("GetService", "method group", "1").WithLocation(27, 9),
7192
Diagnostic(ErrorCode.
ERR_BadArity
, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").WithLocation(32, 18),
7198
Diagnostic(ErrorCode.
ERR_BadArity
, "GetService<>").WithArguments("K.GetService<T1, T2>()", "method", "2").WithLocation(33, 18)
7291
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").WithLocation(11, 9),
7294
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceB<>").WithArguments("GetServiceB", "method group", "1").WithLocation(12, 9),
7297
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").WithLocation(13, 9),
7300
Diagnostic(ErrorCode.
ERR_BadArity
, "GetServiceC<>").WithArguments("Program.GetServiceC<T1, T2>()", "method", "2").WithLocation(14, 9)
Symbols\SymbolErrorTests.cs (3)
4370
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 5, Column = 19 },
4373
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 17, Column = 9 },
4374
new ErrorDescription { Code = (int)ErrorCode.
ERR_BadArity
, Line = 18, Column = 16 });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\NameParsingTests.cs (2)
913
Diagnostic(ErrorCode.
ERR_BadArity
, "M<,>").WithArguments("M", "method group", "2").WithLocation(5, 9));
1014
Diagnostic(ErrorCode.
ERR_BadArity
, "M<,>").WithArguments("M", "method group", "2").WithLocation(5, 9),