summaryrefslogtreecommitdiff
path: root/test/files/pos/t5165/TestAnnotation.java
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-11 11:06:55 -0700
committerPaul Phillips <paulp@improving.org>2012-05-11 11:06:55 -0700
commit3511e5960d510eafcb67c388ec0b5b60aafdd8f3 (patch)
tree31562144f12114e6d8ed3ad0de4a98c2278b69c4 /test/files/pos/t5165/TestAnnotation.java
parent807567230852bcadb98a91322bd348aae764801f (diff)
downloadscala-3511e5960d510eafcb67c388ec0b5b60aafdd8f3.tar.gz
scala-3511e5960d510eafcb67c388ec0b5b60aafdd8f3.tar.bz2
scala-3511e5960d510eafcb67c388ec0b5b60aafdd8f3.zip
Test case closes SI-5165.
Also fixed by annotation/enum commit.
Diffstat (limited to 'test/files/pos/t5165/TestAnnotation.java')
-rw-r--r--test/files/pos/t5165/TestAnnotation.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t5165/TestAnnotation.java b/test/files/pos/t5165/TestAnnotation.java
new file mode 100644
index 0000000000..90886b7537
--- /dev/null
+++ b/test/files/pos/t5165/TestAnnotation.java
@@ -0,0 +1,11 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface TestAnnotation {
+ public enum TestEnumOne { A, B }
+ public enum TestEnumTwo { C, D }
+
+ public TestEnumOne one();
+ public TestEnumTwo two();
+ public String strVal();
+}