From 3511e5960d510eafcb67c388ec0b5b60aafdd8f3 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 11 May 2012 11:06:55 -0700 Subject: Test case closes SI-5165. Also fixed by annotation/enum commit. --- test/files/pos/t5165/TestAnnotation.java | 11 +++++++++++ test/files/pos/t5165/TestObject.scala | 3 +++ test/files/pos/t5165/TestTrait.scala | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 test/files/pos/t5165/TestAnnotation.java create mode 100644 test/files/pos/t5165/TestObject.scala create mode 100644 test/files/pos/t5165/TestTrait.scala (limited to 'test/files/pos') 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 -- cgit v1.2.3