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