42 references to ERR_OverloadRefKind
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1026
or ErrorCode.
ERR_OverloadRefKind
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2223
(d.Code is (int)ErrorCode.
ERR_OverloadRefKind
or (int)ErrorCode.ERR_MemberAlreadyExists or
2243
diagnostics.Add(ErrorCode.
ERR_OverloadRefKind
, method1.GetFirstLocation(), containerForDiagnostics, methodKind.Localize(), refKind1.ToParameterDisplayString(), refKind2.ToParameterDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
PartialEventsAndConstructorsTests.cs (2)
3009
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "C2").WithArguments("C2", "constructor", "ref readonly", "in").WithLocation(9, 13),
3018
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "C3").WithArguments("C3", "constructor", "out", "ref").WithLocation(14, 13));
RefReadonlyParameterTests.cs (3)
6885
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("C", "method", modifier, "ref readonly").WithLocation(4, 10));
7096
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("C", "method", modifier, "ref readonly").WithLocation(7, 10));
7124
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("C", "method", modifier, "ref readonly").WithLocation(7, 10));
Semantics\ExtensionTests.cs (24)
31742
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M7").WithArguments("Extensions", "method", "ref", "in").WithLocation(59, 24),
31745
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M8").WithArguments("Extensions", "method", "ref", "ref readonly").WithLocation(63, 24),
31748
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M9").WithArguments("Extensions", "method", "in", "ref readonly").WithLocation(67, 24),
31918
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M2").WithArguments("Extensions", "method", "ref readonly", "ref").WithLocation(20, 28),
31921
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M3").WithArguments("Extensions", "method", "ref readonly", "in").WithLocation(30, 28),
31924
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M4").WithArguments("Extensions", "method", "in", "ref").WithLocation(40, 28),
31942
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M10").WithArguments("Extensions", "method", "in", "ref").WithLocation(96, 28),
31948
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M12").WithArguments("Extensions", "method", "in", "ref").WithLocation(108, 28)
32312
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M3").WithArguments("Extensions", "method", "in", "ref").WithLocation(19, 21),
32315
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M4").WithArguments("Extensions", "method", "ref readonly", "ref").WithLocation(26, 21),
32318
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M5").WithArguments("Extensions", "method", "ref readonly", "in").WithLocation(33, 21),
32440
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M3").WithArguments("Extensions", "method", "in", "ref").WithLocation(21, 21),
32443
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M4").WithArguments("Extensions", "method", "ref readonly", "ref").WithLocation(28, 21),
32446
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M5").WithArguments("Extensions", "method", "ref readonly", "in").WithLocation(35, 21),
32542
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M2").WithArguments("Extensions", "method", "ref", "ref readonly").WithLocation(12, 28),
32545
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M3").WithArguments("Extensions", "method", "in", "ref readonly").WithLocation(19, 28),
32548
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M4").WithArguments("Extensions", "method", "ref", "in").WithLocation(26, 28),
32557
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M10").WithArguments("Extensions", "method", "in", "ref").WithLocation(51, 28)
32660
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M2").WithArguments("Extensions", "method", "ref", "ref readonly").WithLocation(14, 28),
32663
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M3").WithArguments("Extensions", "method", "in", "ref readonly").WithLocation(21, 28),
32666
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M4").WithArguments("Extensions", "method", "ref", "in").WithLocation(28, 28),
32675
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M10").WithArguments("Extensions", "method", "in", "ref").WithLocation(47, 28)
33367
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M1").WithArguments("Extensions", "method", "in", "ref").WithLocation(17, 14),
33370
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M2").WithArguments("Extensions", "method", "in", "ref").WithLocation(19, 21)
Semantics\RecordTests.cs (1)
15507
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "Deconstruct").WithArguments("B", "method", "ref", "out").WithLocation(5, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\AmbiguousOverrideTests.cs (2)
1386
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "Method").WithArguments("TestClass", "method", "in", "ref").WithLocation(5, 17));
1403
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "Method").WithArguments("TestClass", "method", "in", "out").WithLocation(5, 17));
Semantics\InheritanceBindingTests.cs (1)
6131
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "Method").WithArguments("Derived2", "method", "ref", "out").WithLocation(14, 26));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Symbols\ExtendedPartialMethodsTests.cs (2)
2352
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("Program", "method", "out", "ref").WithLocation(5, 34));
2371
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("Program", "method", "out", "ref").WithLocation(6, 34));
Symbols\SymbolErrorTests.cs (4)
12091
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("NS.IGoo<T>", "method", "out", "ref").WithLocation(7, 14),
12094
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "RetInt").WithArguments("NS.CGoo", "method", "ref", "out").WithLocation(24, 20),
12097
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "M").WithArguments("NS.CGoo.SGoo", "method", "out", "ref").WithLocation(16, 18),
14708
Diagnostic(ErrorCode.
ERR_OverloadRefKind
, "MyClass").WithArguments("TestNamespace.MyClass", "constructor", "out", "ref").WithLocation(8, 17));