mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 16:09:42 +08:00
17 lines
332 B
Java
17 lines
332 B
Java
|
// 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
|
||
|
|