aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t5165
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t5165')
-rw-r--r--tests/pending/pos/t5165/TestAnnotation.java11
-rw-r--r--tests/pending/pos/t5165/TestObject.scala3
-rw-r--r--tests/pending/pos/t5165/TestTrait.scala3
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/pending/pos/t5165/TestAnnotation.java b/tests/pending/pos/t5165/TestAnnotation.java
new file mode 100644
index 000000000..90886b753
--- /dev/null
+++ b/tests/pending/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();
+}
diff --git a/tests/pending/pos/t5165/TestObject.scala b/tests/pending/pos/t5165/TestObject.scala
new file mode 100644
index 000000000..eaf244e9d
--- /dev/null
+++ b/tests/pending/pos/t5165/TestObject.scala
@@ -0,0 +1,3 @@
+
+object TestObject extends TestTrait
+
diff --git a/tests/pending/pos/t5165/TestTrait.scala b/tests/pending/pos/t5165/TestTrait.scala
new file mode 100644
index 000000000..b317e6c6a
--- /dev/null
+++ b/tests/pending/pos/t5165/TestTrait.scala
@@ -0,0 +1,3 @@
+
+@TestAnnotation(one=TestAnnotation.TestEnumOne.A, two=TestAnnotation.TestEnumTwo.C, strVal="something")
+trait TestTrait