jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4063740 6969184
4* @summary Interfaces can be declared in inner classes only for release >= 16
5* @author turnidge
6*
7* @compile/fail/ref=InterfaceInInner.out -XDrawDiagnostics --release 15 InterfaceInInner.java
8* @compile InterfaceInInner.java
9*/
10class InterfaceInInner {
11InterfaceInInner() {
12class foo {
13interface A {
14}
15}
16}
17}
18