96 references to ERR_ImplicitImplementationOfInaccessibleInterfaceMember
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (1)
391
{ Code: (int)ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, Arguments: [_, Symbol s, _] } => s,
Errors\ErrorFacts.cs (1)
2289
or ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1816
if (diagnostic.Severity == DiagnosticSeverity.Error && diagnostic.Code is not ((int)ErrorCode.ERR_ImplicitImplementationOfNonPublicInterfaceMember or (int)ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
))
Symbols\TypeSymbol.cs (1)
1028
diagnostics.Add(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, GetImplicitImplementationDiagnosticLocation(interfaceMember, implementingType, implicitImpl), implementingType, interfaceMember, implicitImpl);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (92)
Symbols\DefaultInterfaceImplementationTests.cs (86)
9301
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(5, 17)
9314
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(5, 17)
9429
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(9, 25)
9625
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(9, 17)
9678
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(9, 25)
9736
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(9, 26)
9794
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(9, 17)
10014
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test2", "I1.M1()", "Test2.M1()").WithLocation(4, 17)
12163
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(10, 17),
12179
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(10, 17)
12591
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "M1").WithArguments("Test1", "I1.M1()", "Test1.M1()").WithLocation(10, 25)
14903
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(12, 9),
14906
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(17, 9)
15109
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9),
15112
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
15360
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9),
15363
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
15437
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9),
15440
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
15519
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(9, 29),
15522
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(9, 34)
15601
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9),
15604
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
15836
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get").WithLocation(6, 9),
15839
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set").WithLocation(11, 9)
18456
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(12, 9)
18585
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9)
18703
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9)
18774
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9)
18850
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(9, 29)
18926
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(11, 9)
19090
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test2", "I1.P1.get", "Test2.P1.get").WithLocation(6, 9)
19194
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(17, 9)
19248
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
19366
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
19437
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
19513
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(9, 34)
19589
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(16, 9)
19753
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test2", "I1.P1.set", "Test2.P1.set").WithLocation(11, 9)
20733
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.P1.get", "Test1.P1.get").WithLocation(12, 9),
20736
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(17, 9)
20884
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.P1.set", "Test1.P1.set").WithLocation(17, 9)
22722
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(12, 9),
22725
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(17, 9)
22782
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9),
22785
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
22906
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9),
22909
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
22983
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9),
22986
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
23065
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(9, 38),
23068
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(9, 43)
23147
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9),
23150
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
23317
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get").WithLocation(6, 9),
23320
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set").WithLocation(11, 9)
25184
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(12, 9)
25238
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9)
25356
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9)
25427
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9)
25503
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(9, 38)
25579
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test1", "I1.this[int].get", "Test1.this[int].get").WithLocation(11, 9)
25743
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("Test2", "I1.this[int].get", "Test2.this[int].get").WithLocation(6, 9)
25847
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(17, 9)
25901
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
26019
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
26090
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
26166
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(9, 43)
26242
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test1", "I1.this[int].set", "Test1.this[int].set").WithLocation(16, 9)
26406
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("Test2", "I1.this[int].set", "Test2.this[int].set").WithLocation(11, 9)
28414
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(12, 9),
28417
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(16, 9)
28614
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(11, 9),
28617
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(15, 9)
28864
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(11, 9),
28867
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(15, 9)
28942
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(11, 9),
28945
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(15, 9)
29026
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "P1").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(9, 41),
29029
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "P1").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(9, 41)
29109
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(11, 9),
29112
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(15, 9)
29348
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test2", "I1.P1.add", "Test2.P1.add").WithLocation(6, 9),
29351
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test2", "I1.P1.remove", "Test2.P1.remove").WithLocation(10, 9)
31445
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "add").WithArguments("Test1", "I1.P1.add", "Test1.P1.add").WithLocation(12, 9),
31448
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "remove").WithArguments("Test1", "I1.P1.remove", "Test1.P1.remove").WithLocation(16, 9)
Symbols\StaticAbstractMembersInInterfacesTests.cs (6)
24088
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").WithLocation(4, 28),
24091
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").WithLocation(4, 33)
24240
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").WithLocation(4, 33)
24413
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "set").WithArguments("C1", "I1.M01.set", "C1.M01.set").WithLocation(4, 28)
24592
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").WithLocation(4, 28)
24765
Diagnostic(ErrorCode.
ERR_ImplicitImplementationOfInaccessibleInterfaceMember
, "get").WithArguments("C1", "I1.M01.get", "C1.M01.get").WithLocation(4, 28)