diff options
author | odersky <odersky@gmail.com> | 2014-12-16 17:24:02 +0100 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2014-12-16 17:24:02 +0100 |
commit | ba74188596760a0826bc6921358eac22f99265d8 (patch) | |
tree | 7cafb3e295768e3e41572dcb505d3deb9571bfcf /tests/pending/pos/t5165 | |
parent | 63e1bc95d4f72331fabf2fd838bb4e8d5b94ad67 (diff) | |
parent | 42851ed2675015d42bb341b82a09bd0bef4a8ce4 (diff) | |
download | dotty-ba74188596760a0826bc6921358eac22f99265d8.tar.gz dotty-ba74188596760a0826bc6921358eac22f99265d8.tar.bz2 dotty-ba74188596760a0826bc6921358eac22f99265d8.zip |
Merge pull request #294 from samuelgruetter/tests-rewrite-2
Run rewrite tool on tests (2)
Diffstat (limited to 'tests/pending/pos/t5165')
-rw-r--r-- | tests/pending/pos/t5165/TestAnnotation.java | 11 | ||||
-rw-r--r-- | tests/pending/pos/t5165/TestObject.scala | 3 | ||||
-rw-r--r-- | tests/pending/pos/t5165/TestTrait.scala | 3 |
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 |