diff options
Diffstat (limited to 'tests/disabled/java-interop/pos/t1782')
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/disabled/java-interop/pos/t1782/Ann.java b/tests/disabled/java-interop/pos/t1782/Ann.java new file mode 100644 index 000000000..0dcfbd2ed --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Ann.java @@ -0,0 +1,3 @@ +public @interface Ann { + public Days value(); +} diff --git a/tests/disabled/java-interop/pos/t1782/Days.java b/tests/disabled/java-interop/pos/t1782/Days.java new file mode 100644 index 000000000..203a87b1c --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Days.java @@ -0,0 +1,3 @@ +public enum Days { + Friday, Sunday +} diff --git a/tests/disabled/java-interop/pos/t1782/ImplementedBy.java b/tests/disabled/java-interop/pos/t1782/ImplementedBy.java new file mode 100644 index 000000000..6aa8b4fa9 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/ImplementedBy.java @@ -0,0 +1,3 @@ +public @interface ImplementedBy { + public Class<?> value(); +} diff --git a/tests/disabled/java-interop/pos/t1782/Test_1.scala b/tests/disabled/java-interop/pos/t1782/Test_1.scala new file mode 100644 index 000000000..6467a74c2 --- /dev/null +++ b/tests/disabled/java-interop/pos/t1782/Test_1.scala @@ -0,0 +1,16 @@ +@ImplementedBy(classOf[Provider]) +trait Service { + def someMethod() +} + +class Provider + extends Service +{ + // test enumeration java annotations + @Ann(Days.Friday) def someMethod() = () + + // #2103 + @scala.beans.BeanProperty + @Ann(value = Days.Sunday) + val t2103 = "test" +} |