32 references to ERR_ExplicitInterfaceMemberReturnTypeMismatch
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2540or ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
324? ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAwaitUsingTests.cs (1)
5606Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "DisposeAsync").WithArguments("Class1.DisposeAsync()", "System.Threading.Tasks.ValueTask", "System.IAsyncDisposable.DisposeAsync()").WithLocation(7, 32),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\InheritanceBindingTests.cs (4)
7026Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "Method").WithArguments("Class4.Method<T>(long, int)", "void", "Interface.Method<T>(long, int)"), 9859Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M1").WithArguments("C1.M1()", "int", "I1.M1()").WithLocation(11, 19), 9905Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M1").WithArguments("C1.M1()", "int?", "I1.M1()").WithLocation(12, 19), 9952Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M").WithArguments("C1.M()", "string", "I.M()").WithLocation(6, 18)
Semantics\NullableReferenceTypesTests.cs (4)
13378Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("B.M2<S>()", "T[]", "IA.M2<T>()").WithLocation(23, 13), 13381Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M3").WithArguments("B.M3<S>()", "T?[]?", "IA.M3<T>()").WithLocation(28, 14), 13453Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("B.M2<S>()", "T[]", "IA.M2<T>()").WithLocation(17, 13), 139426Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "Goo").WithArguments("C2.Goo<T>(T?)", "int", "I.Goo<T>(T?)").WithLocation(12, 14),
Semantics\UseSiteErrorTests.cs (2)
203Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "ReturnType2").WithArguments("C.ReturnType2()", "UnavailableClass[]", "CSharpErrors.InterfaceMethods.ReturnType2()").WithLocation(5, 54), 221Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "ReturnType1").WithArguments("C.ReturnType1()", "UnavailableClass", "CSharpErrors.InterfaceMethods.ReturnType1()").WithLocation(4, 52),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
Symbols\CovariantReturnTests.cs (4)
2164Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("Derived.M2()", "object", "Base.M2()").WithLocation(10, 17), 2170Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("C.M2()", "object", "Base.M2()").WithLocation(15, 17) 2179Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("Derived.M2()", "object", "Base.M2()").WithLocation(10, 17), 2185Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M2").WithArguments("C.M2()", "object", "Base.M2()").WithLocation(15, 17)
Symbols\DefaultInterfaceImplementationTests.cs (4)
23780Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M4").WithArguments("CI4.M4()", "I1.I2", "I3.I4.M4()").WithLocation(26, 21), 23792Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M6").WithArguments("CI6.M6()", "I1.I2", "C3.I6.M6()").WithLocation(39, 21), 23963Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M4").WithArguments("CI4.M4()", "I1<string>.I2", "I3.I4.M4()").WithLocation(26, 29), 23975Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M6").WithArguments("CI6.M6()", "I1<string>.I2", "C3.I6.M6()").WithLocation(39, 29),
Symbols\StaticAbstractMembersInInterfacesTests.cs (11)
15558Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M01").WithArguments("C6.M01()", "void", "I1.M01()").WithLocation(38, 19) 15620Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M01").WithArguments("C6.M01()", "void", "I1.M01()").WithLocation(38, 19) 15700Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "M01").WithArguments("C6.M01()", "void", "I1.M01()").WithLocation(38, 12) 17625Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6)").WithLocation(38, 32 + checkedKeyword.Length), 17768Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6)").WithLocation(38, 32 + checkedKeyword.Length), 17893Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6)").WithLocation(38, 32 + checkedKeyword.Length), 18006Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6)").WithLocation(38, 32 + checkedKeyword.Length), 18160Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6, int)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6, int)").WithLocation(38, 32 + checkedKeyword.Length), 18285Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, op).WithArguments("C6.operator " + checkedKeyword + op + "(C6, int)", "C6", "I1<C6>.operator " + checkedKeyword + op + "(C6, int)").WithLocation(38, 32 + checkedKeyword.Length), 28466Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "long").WithArguments("C6." + op + " operator " + checkedKeyword + "long(C6)", "int", "I1<C6>." + op + " operator " + checkedKeyword + "int(C6)").WithLocation(38, 37 + checkedKeyword.Length), 28591Diagnostic(ErrorCode.ERR_ExplicitInterfaceMemberReturnTypeMismatch, "long").WithArguments("C6." + op + " operator " + checkedKeyword + "long(C6)", "int", "I1<C6>." + op + " operator " + checkedKeyword + "int(C6)").WithLocation(38, 37 + checkedKeyword.Length),