42 references to ERR_AmbigOverride
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
910
or ErrorCode.
ERR_AmbigOverride
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
838
diagnostics.Add(ErrorCode.
ERR_AmbigOverride
, overridingMemberLocation,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
RefReadonlyParameterTests.cs (1)
6093
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("B<T>.M(in T)", "B<T>.M(ref readonly int)", "C").WithLocation(8, 29));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (23)
Semantics\AmbiguousOverrideTests.cs (12)
146
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Derived<TInt>.Method(long, TInt)", "Derived<TInt>.Method(long, int)", "Derived2").WithLocation(4, 26)
154
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Derived<TInt>.Method(long, TInt)", "Derived<TInt>.Method(long, int)", "Derived2").WithLocation(4, 26),
206
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)", "Derived").WithLocation(15, 26),
209
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(T)", "Base<T, U>.Method(int)", "Derived").WithLocation(12, 26),
223
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(T, U)", "Base<T, U>.Method(U, T)", "Derived").WithLocation(15, 26),
229
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(T)", "Base<T, U>.Method(int)", "Derived").WithLocation(12, 26),
268
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, params System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").WithLocation(10, 26)
276
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, params System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").WithLocation(10, 26),
309
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").WithLocation(10, 26)
317
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<T, U>.Method(System.Collections.Generic.List<T>, System.Collections.Generic.List<U>[])", "Base<T, U>.Method(System.Collections.Generic.List<U>, System.Collections.Generic.List<T>[])", "Derived").WithLocation(10, 26),
1185
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F").WithArguments("CG<T>.F(T)", "CG<T>.F(T)", "EG<T>"),
1188
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F").WithArguments("CG<T>.F(T)", "CG<T>.F(T)", "EGI"),
Semantics\InheritanceBindingTests.cs (5)
4997
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<TShort, TInt>.Method(TShort, int)", "Base<TShort, TInt>.Method(short, TInt)", "Derived").WithLocation(10, 26)
5008
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Method").WithArguments("Base<TShort, TInt>.Method(TShort, int)", "Base<TShort, TInt>.Method(short, TInt)", "Derived").WithLocation(10, 26)
5030
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "this").WithArguments("Base<TShort, TInt>.this[TShort, int]", "Base<TShort, TInt>.this[short, TInt]", "Derived"));
6449
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Property").WithArguments("NS1.Base<T>.Property", "NS1.Base<T>.Property", "NS1.Derived"),
6452
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "Property").WithArguments("NS1.Base<T>.Property", "NS1.Base<T>.Property", "NS1.Derived"),
Semantics\NullableReferenceTypesTests.cs (6)
150635
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B1").WithLocation(10, 26),
150638
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B1").WithLocation(11, 26),
150641
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B2").WithLocation(15, 26),
150647
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B2").WithLocation(16, 26),
150650
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F1").WithArguments("A<T>.F1<U>(T)", "A<T>.F1<U>(object)", "B3").WithLocation(20, 26),
150653
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F2").WithArguments("A<T>.F2<U>(T)", "A<T>.F2<U>(object)", "B3").WithLocation(21, 26),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\CovariantReturnTests.cs (13)
2469
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Base<T>.M(string)", "Base<T>.M(T)", "Derived").WithLocation(9, 28)
2475
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Base<T>.M(string)", "Base<T>.M(T)", "Derived").WithLocation(9, 28)
4457
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "null").WithArguments("Base<Pbject>.Prop.get", "Base<Pbject>.get_Prop()", "Derived")
4466
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "get_Prop").WithArguments("Base<Pbject>.get_Prop()", "Base<Pbject>.Prop.get", "Derived")
4637
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Base<T>.M(int)", "Base<T>.M(int)", "Derived").WithLocation(10, 26)
4742
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(int)", "Derived").WithLocation(4, 26)
4748
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(int)", "Derived").WithLocation(4, 26)
4805
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(T)", "Derived").WithLocation(4, 26)
4811
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Container<T>.Base.M(int)", "Container<T>.Base.M(T)", "Derived").WithLocation(4, 26)
4926
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "get_P").WithArguments("Root<T>.get_P()", "Root<T>.get_P()", "Derived").WithLocation(4, 25)
4932
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "get_P").WithArguments("Root<T>.get_P()", "Root<T>.get_P()", "Derived").WithLocation(4, 25)
4990
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Root<T>.M(ref int)", "Root<T>.M(ref T)", "Derived").WithLocation(4, 26)
4996
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "M").WithArguments("Root<T>.M(ref int)", "Root<T>.M(ref T)", "Derived").WithLocation(4, 26)
Symbols\IndexerTests.cs (1)
806
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "this").WithArguments("Base.this[int]", "Base.this[int]", "Derived"));
Symbols\SymbolErrorTests.cs (2)
7967
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F").WithArguments("C<T>.F(T)", "C<T>.F(int)", "D").WithLocation(9, 25)
7978
Diagnostic(ErrorCode.
ERR_AmbigOverride
, "F").WithArguments("C<T>.F(T)", "C<T>.F(int)", "D").WithLocation(9, 25)