75 references to ERR_CloseUnimplementedInterfaceMemberWrongReturnType
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1082
or ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
Symbols\TypeSymbol.cs (1)
2071
diagnostics.Add(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, interfaceLocation, implementingType, interfaceMember, closestMismatch, interfaceMemberReturnType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAwaitUsingTests.cs (1)
175
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "System.IAsyncDisposable").WithArguments("C", "System.IAsyncDisposable.DisposeAsync()", "C.DisposeAsync()", "System.Threading.Tasks.ValueTask").WithLocation(3, 11),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\RecordTests.cs (2)
10202
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "IA").WithArguments("C", "IA.X", "C.X", "int").WithLocation(9, 32),
20739
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "A").WithArguments("A", "System.IEquatable<A>.Equals(A)", "A.Equals(A)", "bool").WithLocation(2, 8),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\InheritanceBindingTests.cs (28)
3261
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Base", "Interface.Property2", "Base.Property2", "object").WithLocation(8, 14),
3267
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Derived2", "Interface.Property2", "Base.Property2", "object").WithLocation(18, 24)
3298
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Base", "Interface.this[string]", "Base.this[string]", "object").WithLocation(8, 14),
3304
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Derived2", "Interface.this[string]", "Base.this[string]", "object").WithLocation(18, 24)
3335
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Base", "Interface.Event2", "Base.Event2", "System.Action").WithLocation(8, 14),
3341
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Derived2", "Interface.Event2", "Base.Event2", "System.Action").WithLocation(18, 24)
3707
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Base", "Interface.Method2()", "Base.Method2()", "void").WithLocation(13, 22),
3751
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
3785
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
3819
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
3879
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 13, Column = 22 },
3888
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 28, Column = 24 },
3897
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 45, Column = 24 },
3955
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
3963
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 26, Column = 24 },
3971
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 40, Column = 25 },
4028
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
4035
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 26, Column = 24 },
4042
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 40, Column = 25 },
4102
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 12, Column = 14 },
4110
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 26, Column = 24 },
4118
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 40, Column = 25 },
6937
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface").WithArguments("Class4", "Interface.Method<T>(long, int)", "Class4.Method<T>(long, int)", "void").WithLocation(35, 16),
6940
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Interface3").WithArguments("Class41", "Interface3.Property", "Class41.Property", "int").WithLocation(39, 17),
7319
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Outer<U>.Inner<int>.Interface<long, T>").WithArguments("Derived1<U, T>", "Outer<U>.Inner<int>.Interface<long, T>.Property", "Outer<U>.Inner<T>.Base<U, T>.Property", "U").WithLocation(25, 63),
7331
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "Outer<List<List<int>>>.Inner<List<List<T>>>.Interface<long, List<int>>").WithArguments("Derived1<U, T>.Derived2<T>", "Outer<System.Collections.Generic.List<System.Collections.Generic.List<int>>>.Inner<System.Collections.Generic.List<System.Collections.Generic.List<T>>>.Interface<long, System.Collections.Generic.List<int>>.Property", "Derived1<U, T>.Derived2<T>.Property", "System.Collections.Generic.List<System.Collections.Generic.List<int>>").WithLocation(27, 32));
7858
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I3").WithArguments("Test", "I3.P", "Test.P", "long").WithLocation(32, 14),
7861
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I3").WithArguments("Test", "I1.M1(long)", "Test.M1(long)", "void").WithLocation(32, 14),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (42)
Symbols\DefaultInterfaceImplementationTests.cs (30)
9894
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").WithLocation(9, 15)
9914
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").WithLocation(2, 15)
9926
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").WithLocation(2, 15)
15736
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").WithLocation(2, 15)
19023
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").WithLocation(2, 15)
19686
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "int").WithLocation(2, 15)
23247
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").WithLocation(2, 15)
25676
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").WithLocation(2, 15)
26339
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").WithLocation(2, 15)
29248
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("Test1", "I1.P1", "Test1.P1", "System.Action").WithLocation(2, 15)
34700
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").WithLocation(2, 15)
34714
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.M1()", "Test1.M1()", "void").WithLocation(2, 15)
38995
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "int").WithLocation(2, 15)
41685
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "System.Action").WithLocation(2, 15)
41699
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.M1", "Test1.M1", "System.Action").WithLocation(2, 15)
43439
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").WithLocation(2, 15)
43448
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test1", "I1.this[int]", "Test1.this[int]", "int").WithLocation(2, 15)
63126
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P1", "Test3.P1", "int").WithLocation(10, 15),
63129
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(10, 15),
63132
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P3", "Test3.P3", "int").WithLocation(10, 15)
63338
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(10, 15)
63504
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(10, 15)
63680
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(10, 15)
64064
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P1", "Test3.P1", "int").WithLocation(6, 15),
64067
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(6, 15),
64070
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P3", "Test3.P3", "int").WithLocation(6, 15)
64213
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(6, 15)
64329
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(6, 15)
64450
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I2").WithArguments("Test3", "I1.P2", "Test3.P2", "int").WithLocation(6, 15)
65311
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I101").WithArguments("Test", "I101.Test1()", "Test.Test1()", "I100.C100").WithLocation(26, 14)
Symbols\OverriddenOrHiddenMembersTests.cs (1)
2096
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("B2", "I1.Goo", "B2.Goo", "int").WithLocation(10, 16));
Symbols\StaticAbstractMembersInInterfacesTests.cs (10)
15552
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01()", "C5.M01()", "void").WithLocation(30, 10),
15694
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01()", "C5.M01()", "void").WithLocation(30, 10),
17619
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1<C5>").WithArguments("C5", "I1<C5>.operator " + checkedKeyword + op + "(C5)", "C5.operator " + checkedKeyword + op + "(C5)", "C5").WithLocation(30, 10),
17762
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1<C5>").WithArguments("C5", "I1<C5>.operator " + checkedKeyword + op + "(C5)", "C5.operator " + checkedKeyword + op + "(C5)", "C5").WithLocation(30, 10),
18154
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1<C5>").WithArguments("C5", "I1<C5>.operator " + checkedKeyword + op + "(C5, int)", "C5.operator " + checkedKeyword + op + "(C5, int)", "C5").WithLocation(30, 10),
22938
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01", "C5.M01", "int").WithLocation(30, 10),
23080
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01", "C5.M01", "int").WithLocation(30, 10),
25717
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01", "C5.M01", "System.Action").WithLocation(30, 10),
25859
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1").WithArguments("C5", "I1.M01", "C5.M01", "System.Action").WithLocation(30, 10),
28460
Diagnostic(ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, "I1<C5>").WithArguments("C5", "I1<C5>." + op + " operator " + checkedKeyword + "int(C5)", "C5." + op + " operator " + checkedKeyword + "long(C5)", "int").WithLocation(30, 10),
Symbols\SymbolErrorTests.cs (1)
13969
new ErrorDescription { Code = (int)ErrorCode.
ERR_CloseUnimplementedInterfaceMemberWrongReturnType
, Line = 7, Column = 21 });