summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-02-18 11:54:48 +0100
committerJason Zaugg <jzaugg@gmail.com>2014-02-18 11:54:48 +0100
commit3a6c9adad4172e8116358cf3a63a0d8ceca6796a (patch)
tree8d55c0fed5d7b0dcaf171623ea112e40d84b787a /test
parent8536c3148d5a6283b580a905ca4231e852525d59 (diff)
downloadscala-3a6c9adad4172e8116358cf3a63a0d8ceca6796a.tar.gz
scala-3a6c9adad4172e8116358cf3a63a0d8ceca6796a.tar.bz2
scala-3a6c9adad4172e8116358cf3a63a0d8ceca6796a.zip
SI-5165 separate compilation test Java annotations bug
Progressed at the genesis of GenASM, dc6a49337f.
Diffstat (limited to 'test')
-rw-r--r--test/files/pos/t5165b/TestAnnotation_1.java11
-rw-r--r--test/files/pos/t5165b/TestObject_3.scala3
-rw-r--r--test/files/pos/t5165b/TestTrait_2.scala3
3 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t5165b/TestAnnotation_1.java b/test/files/pos/t5165b/TestAnnotation_1.java
new file mode 100644
index 0000000000..02eb3f9d4c
--- /dev/null
+++ b/test/files/pos/t5165b/TestAnnotation_1.java
@@ -0,0 +1,11 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface TestAnnotation_1 {
+ public enum TestEnumOne { A, B }
+ public enum TestEnumTwo { C, D }
+
+ public TestEnumOne one();
+ public TestEnumTwo two();
+ public String strVal();
+}
diff --git a/test/files/pos/t5165b/TestObject_3.scala b/test/files/pos/t5165b/TestObject_3.scala
new file mode 100644
index 0000000000..eaf244e9d0
--- /dev/null
+++ b/test/files/pos/t5165b/TestObject_3.scala
@@ -0,0 +1,3 @@
+
+object TestObject extends TestTrait
+
diff --git a/test/files/pos/t5165b/TestTrait_2.scala b/test/files/pos/t5165b/TestTrait_2.scala
new file mode 100644
index 0000000000..ab4facebcd
--- /dev/null
+++ b/test/files/pos/t5165b/TestTrait_2.scala
@@ -0,0 +1,3 @@
+
+@TestAnnotation_1(one=TestAnnotation_1.TestEnumOne.A, two=TestAnnotation_1.TestEnumTwo.C, strVal="something")
+trait TestTrait