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