diff options
Diffstat (limited to 'tests/bugs150/pr108370/EnumTest.aj')
-rw-r--r-- | tests/bugs150/pr108370/EnumTest.aj | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs150/pr108370/EnumTest.aj b/tests/bugs150/pr108370/EnumTest.aj new file mode 100644 index 000000000..44286f58a --- /dev/null +++ b/tests/bugs150/pr108370/EnumTest.aj @@ -0,0 +1,19 @@ +public aspect EnumTest { + public static enum Test { + A,B,C + } + + public void et.Q.foo(Test t) { + switch (t) { + case B: + System.out.println("B!"); + break; + } + } + + public static void main(String[] args) { + et.Q q = new et.Q(); + q.foo(Test.B); + q.foo(Test.C); + } +}
\ No newline at end of file |