70 references to ERR_ClassDoesntImplementInterface
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
947
or ErrorCode.
ERR_ClassDoesntImplementInterface
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
231
diagnostics.Add(ErrorCode.
ERR_ClassDoesntImplementInterface
, location, implementingMember, explicitInterfaceNamedType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenScriptTests.cs (1)
645
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.M()", "I1").WithLocation(7, 6)
CodeGen\CodeGenTupleTest.cs (5)
20796
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<(int c, int d)>").WithArguments("C3.I1<(int c, int d)>.M()", "I1<(int c, int d)>").WithLocation(9, 10)
20941
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I0<(int a, int b)>").WithArguments("D2.I0<(int a, int b)>.set((int a, int b))", "I0<(int a, int b)>").WithLocation(25, 10),
20944
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I0<(int a, int b)>").WithArguments("D2.I0<(int a, int b)>.get()", "I0<(int a, int b)>").WithLocation(24, 20)
20983
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I0<(int, int)>").WithArguments("C2.I0<(int, int)>.set((int, int))", "I0<(int, int)>").WithLocation(15, 10),
20986
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I0<(int, int)>").WithArguments("C2.I0<(int, int)>.get()", "I0<(int, int)>").WithLocation(14, 16)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27)
Semantics\BindingTests.cs (1)
2225
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I").WithArguments("I.M()", "I").WithLocation(3, 18)
Semantics\InheritanceBindingTests.cs (23)
3398
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface2").WithArguments("Base.Interface2.Method1()", "Interface2"),
3404
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface").WithArguments("Derived.Interface.Method1()", "Interface"));
3459
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface2").WithArguments("Base.Interface2.Property1", "Interface2"),
3465
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface").WithArguments("Derived.Interface.Property1", "Interface"));
3520
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface2").WithArguments("Base.Interface2.this[int, int]", "Interface2"),
3526
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface").WithArguments("Derived.Interface.this[int, int]", "Interface"));
3585
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface2").WithArguments("Base.Interface2.Event1", "Interface2"),
3594
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface").WithArguments("Derived.Interface.Event1", "Interface"));
3613
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I<dynamic>").WithArguments("C.I<dynamic>.F()", "I<dynamic>")
3633
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I<dynamic>").WithArguments("C.I<dynamic>.P", "I<dynamic>")
3653
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I<dynamic>").WithArguments("C.I<dynamic>.this[int]", "I<dynamic>"));
3672
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I<dynamic>").WithArguments("C.I<dynamic>.E", "I<dynamic>")
7449
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Outer<List<T>>.Inner<U>.Interface<List<U>, T>").WithArguments("Outer<T>.Inner<U>.Derived4.Derived5.Derived6<u>.Outer<System.Collections.Generic.List<T>>.Inner<U>.Interface<System.Collections.Generic.List<U>, T>.Property", "Outer<System.Collections.Generic.List<T>>.Inner<U>.Interface<System.Collections.Generic.List<U>, T>"),
7451
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Outer<List<T>>.Inner<U>.Interface<List<U>, T>").WithArguments("Outer<T>.Inner<U>.Derived4.Derived5.Derived6<u>.Outer<System.Collections.Generic.List<T>>.Inner<U>.Interface<System.Collections.Generic.List<U>, T>.Method<K>(System.Collections.Generic.List<T>, U[], System.Collections.Generic.List<System.Collections.Generic.List<U>>, System.Collections.Generic.Dictionary<T, K>)", "Outer<System.Collections.Generic.List<T>>.Inner<U>.Interface<System.Collections.Generic.List<U>, T>"),
7457
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Outer<T>.Inner<int>.Interface<long, string>").WithArguments("Outer<T>.Inner<U>.Derived1.Outer<T>.Inner<int>.Interface<long, string>.Property", "Outer<T>.Inner<int>.Interface<long, string>"),
7459
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Inner<int>.Interface<long, string>").WithArguments("Outer<T>.Inner<U>.Derived1.Outer<T>.Inner<int>.Interface<long, string>.Method<K>(T, int[], System.Collections.Generic.List<long>, System.Collections.Generic.Dictionary<string, K>)", "Outer<T>.Inner<int>.Interface<long, string>"),
7465
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Outer<X>.Inner<int>.Interface<long, Y>").WithArguments("Outer<T>.Inner<U>.Derived1.Derived2<X, Y>.Outer<X>.Inner<int>.Interface<long, Y>.Property", "Outer<X>.Inner<int>.Interface<long, Y>"),
7467
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Outer<X>.Inner<int>.Interface<long, Y>").WithArguments("Outer<T>.Inner<U>.Derived1.Derived2<X, Y>.Outer<X>.Inner<int>.Interface<long, Y>.Method<K>(X, int[], System.Collections.Generic.List<long>, System.Collections.Generic.Dictionary<Y, K>)", "Outer<X>.Inner<int>.Interface<long, Y>"),
7728
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface<T, U>").WithArguments("Outer<T>.Inner<U>.Derived4.Property", "Outer<T>.Inner<U>.Interface<T, U>"),
7732
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Inner<T>.Interface<T, U>").WithArguments("Outer<T>.Inner<U>.Derived4.Method<K>(U, T[], System.Collections.Generic.List<T>, System.Collections.Generic.Dictionary<U, K>)", "Outer<T>.Inner<T>.Interface<T, U>"),
7740
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Interface<long, string>").WithArguments("Outer<T>.Inner<U>.Derived1.Outer<T>.Inner<U>.Interface<long, string>.Property", "Outer<T>.Inner<U>.Interface<long, string>"),
7744
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Inner<int>.Interface<long, Y>").WithArguments("Outer<T>.Inner<U>.Derived1.Derived2<X, Y>.Property", "Outer<T>.Inner<int>.Interface<long, Y>"),
7748
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "Inner<long>.Interface<long, Y>").WithArguments("Outer<T>.Inner<U>.Derived1.Derived2<X, Y>.Method<K>(X, int[], System.Collections.Generic.List<long>, System.Collections.Generic.Dictionary<Y, K>)", "Outer<T>.Inner<long>.Interface<long, Y>"),
Semantics\NullableReferenceTypesTests.cs (2)
116435
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<(CT1 a, CT2 b)>").WithArguments("C<CT1, CT2>.I1<(CT1 a, CT2 b)>.M()", "I1<(CT1 a, CT2 b)>").WithLocation(4, 10)
116479
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<(CT1 c, CT2 d)>").WithArguments("C<CT1, CT2>.I1<(CT1 c, CT2 d)>.M()", "I1<(CT1 c, CT2 d)>").WithLocation(4, 10)
Semantics\ValueTupleTests.cs (1)
304
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "System.Runtime.CompilerServices.ITuple").WithArguments("System.ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>.System.Runtime.CompilerServices.ITuple.this[int]", "System.Runtime.CompilerServices.ITuple").WithLocation(13, 16));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (35)
BadSymbolReference.cs (2)
1166
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("ErrorTest.C8.ErrorTest.I1.M1()", "ErrorTest.I1"),
1169
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("ErrorTest.C6.ErrorTest.I1.M1()", "ErrorTest.I1"),
Symbols\DefaultInterfaceImplementationTests.cs (24)
33488
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I4").WithArguments("I1.I4.M1()", "I4").WithLocation(18, 10 + implModifiers.Length),
33491
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.M1()", "I2").WithLocation(14, 10 + implModifiers.Length)
37596
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.M1", "I2").WithLocation(14, 9 + implModifiers.Length),
37599
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I4").WithArguments("I1.I4.M1", "I4").WithLocation(15, 9 + implModifiers.Length)
40622
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.M1", "I2").WithLocation(9, 25 + implModifiers.Length)
42750
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.this[int]", "I2").WithLocation(14, 9),
42753
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I4").WithArguments("I1.I4.this[int]", "I4").WithLocation(15, 9)
67142
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.M1()", "I1").WithLocation(4, 9),
67179
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.M1()", "I1").WithLocation(4, 9),
67212
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.M1()", "I2").WithLocation(4, 9),
67249
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.M1()", "I2").WithLocation(4, 9),
67293
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.M1()", "I2").WithLocation(8, 9),
67324
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.P1", "I1").WithLocation(4, 9),
67363
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.P1", "I1").WithLocation(4, 9),
67396
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.P1", "I2").WithLocation(4, 9),
67436
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.P1", "I2").WithLocation(4, 9),
67480
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.P1", "I2").WithLocation(8, 9),
67512
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.E1", "I1").WithLocation(4, 25),
67553
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1").WithArguments("I1.E1", "I1").WithLocation(4, 25),
67587
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.I2.E1", "I2").WithLocation(4, 25),
67629
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.E1", "I2").WithLocation(4, 25),
67674
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.E1", "I2").WithLocation(8, 25),
67705
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<int>").WithArguments("I1<T>.P1", "I1<int>").WithLocation(4, 9)
67723
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "A").WithArguments("A.B", "A").WithLocation(3, 12),
Symbols\Source\EventTests.cs (1)
2192
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "System.IFormattable").WithArguments("<invalid-global-code>.", "System.IFormattable").WithLocation(1, 21),
Symbols\Source\FileModifierTests.cs (1)
2843
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "FI<dynamic>").WithArguments("C.FI<dynamic>.Prop", "FI<dynamic>").WithLocation(9, 13)
Symbols\StaticAbstractMembersInInterfacesTests.cs (3)
22807
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<int>").WithArguments("C1.I1<int>.operator " + op + "(I1<int>)", "I1<int>").WithLocation(9, 20),
22852
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<string>").WithArguments("C1.I1<string>.operator " + op + "(I1<string>, int)", "I1<string>").WithLocation(9, 23),
30466
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I1<int>").WithArguments("C1.I1<int>." + op + " operator int(int)", "I1<int>").WithLocation(9, 21),
Symbols\SymbolErrorTests.cs (4)
926
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.P10", "I2").WithLocation(6, 25),
948
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I2").WithArguments("I1.P10", "I2").WithLocation(6, 25),
1725
Diagnostic(ErrorCode.
ERR_ClassDoesntImplementInterface
, "I").WithArguments("MyNamespace.MyClass.MyNamespace.I.m()", "MyNamespace.I").WithLocation(12, 21),
9831
new ErrorDescription { Code = (int)ErrorCode.
ERR_ClassDoesntImplementInterface
, Line = 8, Column = 10 });