1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// CS0122: `Test.Foo.IBar' is inaccessible due to its protection level // Line: 11 public class Test { public class Foo { protected interface IBar {} } private class Bar : Foo.IBar { } public static void Main () {} }