org.aspectj/tests/pureJava/LocalInterfaceCE.java
2002-12-16 18:51:06 +00:00

19 lines
522 B
Java

/** @testcase PR721 interface declaration not permitted in local method scope */
public class LocalInterfaceCE {
void method() {
interface Local {} // CE 5 interface not allowed here
}
static {
interface Local {} // CE 8 interface not allowed here
}
static void staticMethod() {
interface Local {} // CE 11 interface not allowed here
}
class Inner {
void method() {
interface Local {} // CE 15 interface not allowed here
}
}
}