blob: dc926813d2674cba922305e62c4681ac9817502b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import java.lang.annotation.*;
aspect X {
declare error: I+ && !hasmethod(* foo(..)): "Missing foo() method in I subtype";
}
interface I {}
class C implements I {
void foo() {}
}
class D implements I {
}
|