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