aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hasmember/HasMethodViaITD.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hasmember/HasMethodViaITD.aj')
-rw-r--r--tests/hasmember/HasMethodViaITD.aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/hasmember/HasMethodViaITD.aj b/tests/hasmember/HasMethodViaITD.aj
new file mode 100644
index 000000000..5573675d5
--- /dev/null
+++ b/tests/hasmember/HasMethodViaITD.aj
@@ -0,0 +1,17 @@
+public aspect HasMethodViaITD {
+
+ declare parents : hasmethod(* foo()) implements I;
+
+ // C gets foo via ITD
+ public void C.foo() {}
+
+ declare warning : execution(* I+.bar()) : "hasmethod matched on ITD ok";
+}
+
+interface I {}
+
+class C {
+
+ void bar() {}
+
+} \ No newline at end of file