From 3a6c9adad4172e8116358cf3a63a0d8ceca6796a Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 18 Feb 2014 11:54:48 +0100 Subject: SI-5165 separate compilation test Java annotations bug Progressed at the genesis of GenASM, dc6a49337f. --- test/files/pos/t5165b/TestAnnotation_1.java | 11 +++++++++++ test/files/pos/t5165b/TestObject_3.scala | 3 +++ test/files/pos/t5165b/TestTrait_2.scala | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 test/files/pos/t5165b/TestAnnotation_1.java create mode 100644 test/files/pos/t5165b/TestObject_3.scala create mode 100644 test/files/pos/t5165b/TestTrait_2.scala (limited to 'test/files/pos/t5165b') 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 -- cgit v1.2.3