27 references to WRN_MultipleRuntimeOverrideMatches
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
375
case ErrorCode.
WRN_MultipleRuntimeOverrideMatches
:
1451
or ErrorCode.
WRN_MultipleRuntimeOverrideMatches
Generated\ErrorFacts.Generated.cs (1)
116
case ErrorCode.
WRN_MultipleRuntimeOverrideMatches
:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
861
diagnostics.Add(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, ambiguousMethod.GetFirstLocation(), ambiguousMethod, overridingMember);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenOverridingAndHiding.cs (2)
1226
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)", "Derived.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)").WithLocation(5, 25)
1233
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)", "Derived.Method(ref System.Collections.Generic.List<int>, out System.Collections.Generic.List<int>)").WithLocation(6, 25)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\AmbiguousOverrideTests.cs (5)
157
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Derived<int>.Method(long, int)", "Derived2.Method(long, int)").WithLocation(4, 26)
226
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(int, int)", "Derived.Method(int, int)").WithLocation(7, 25),
232
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(int)", "Derived.Method(int)").WithLocation(4, 25),
279
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(System.Collections.Generic.List<int>, params System.Collections.Generic.List<int>[])", "Derived.Method(System.Collections.Generic.List<int>, params System.Collections.Generic.List<int>[])").WithLocation(5, 25)
320
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int, int>.Method(System.Collections.Generic.List<int>, System.Collections.Generic.List<int>[])", "Derived.Method(System.Collections.Generic.List<int>, System.Collections.Generic.List<int>[])").WithLocation(5, 25)
Semantics\InheritanceBindingTests.cs (2)
5005
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<short, int>.Method(short, int)", "Derived.Method(short, int)").WithLocation(4, 25),
5065
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Method").WithArguments("Base<int>.Method(int, ref int)", "Derived.Method(int, ref int)").WithLocation(5, 25)
Semantics\NullableReferenceTypesTests.cs (6)
150617
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F1").WithArguments("A<object>.F1<U>(object)", "B1.F1<U>(object)").WithLocation(3, 26),
150620
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F1").WithArguments("A<object>.F1<U>(object)", "B2.F1<U>(object)").WithLocation(3, 26),
150623
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F1").WithArguments("A<object>.F1<U>(object)", "B3.F1<U>(object)").WithLocation(3, 26),
150626
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F2").WithArguments("A<object>.F2<U>(object)", "B1.F2<U>(object)").WithLocation(5, 26),
150629
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F2").WithArguments("A<object>.F2<U>(object)", "B2.F2<U>(object)").WithLocation(5, 26),
150632
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F2").WithArguments("A<object>.F2<U>(object)", "B3.F2<U>(object)").WithLocation(5, 26),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Symbols\CovariantReturnTests.cs (6)
3857
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "M").WithArguments("Base1<string>.M(ref string, out string)", "Derived.M(ref string, out string)").WithLocation(4, 27)
3980
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "M").WithArguments("Base1<string>.M(ref string, out string)", "Derived.M(ref string, out string)").WithLocation(5, 27)
4100
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "M").WithArguments("Base<string>.M(ref string, out string)", "Derived.M(ref string, out string)").WithLocation(4, 27)
4215
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "M").WithArguments("Base<string>.M(ref string, out string)", "Derived.M(ref string, out string)").WithLocation(5, 27)
4479
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "default(Pbject)").WithArguments("Base<object>.Prop.get", "Derived.Prop.get")
4487
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "get_Prop").WithArguments("Base<object>.get_Prop()", "Derived.get_Prop()")
Symbols\SymbolErrorTests.cs (2)
7975
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "F").WithArguments("C<int>.F(int)", "D.F(int)").WithLocation(3, 24),
18878
Diagnostic(ErrorCode.
WRN_MultipleRuntimeOverrideMatches
, "Test").WithArguments("Base<string>.Test(string, ref int)", "Derived.Test(string, ref int)").WithLocation(8, 25)