blob: eae4032e1239b828d6efd7214d7716d4b69dff5e (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | // File PrivateInnerInterface.java
public class PR224 {
    private interface Inter {}
}
class PrivateInnerInterface_Test extends PR224 {
    void foo() {
        // Implement the interface with an innerclass
        Inter i = new Inter() { } ;
    }
}
// This should fail to compile because Inter is private in the superclass
 |