diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-11 11:06:55 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-11 11:06:55 -0700 |
commit | 3511e5960d510eafcb67c388ec0b5b60aafdd8f3 (patch) | |
tree | 31562144f12114e6d8ed3ad0de4a98c2278b69c4 /test/files/pos/t5165 | |
parent | 807567230852bcadb98a91322bd348aae764801f (diff) | |
download | scala-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')
-rw-r--r-- | test/files/pos/t5165/TestAnnotation.java | 11 | ||||
-rw-r--r-- | test/files/pos/t5165/TestObject.scala | 3 | ||||
-rw-r--r-- | test/files/pos/t5165/TestTrait.scala | 3 |
3 files changed, 17 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(); +} diff --git a/test/files/pos/t5165/TestObject.scala b/test/files/pos/t5165/TestObject.scala new file mode 100644 index 0000000000..eaf244e9d0 --- /dev/null +++ b/test/files/pos/t5165/TestObject.scala @@ -0,0 +1,3 @@ + +object TestObject extends TestTrait + diff --git a/test/files/pos/t5165/TestTrait.scala b/test/files/pos/t5165/TestTrait.scala new file mode 100644 index 0000000000..b317e6c6a3 --- /dev/null +++ b/test/files/pos/t5165/TestTrait.scala @@ -0,0 +1,3 @@ + +@TestAnnotation(one=TestAnnotation.TestEnumOne.A, two=TestAnnotation.TestEnumTwo.C, strVal="something") +trait TestTrait |