diff options
Diffstat (limited to 'tests/pos/java-interop/t1782/Test_1.scala')
-rw-r--r-- | tests/pos/java-interop/t1782/Test_1.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/java-interop/t1782/Test_1.scala b/tests/pos/java-interop/t1782/Test_1.scala new file mode 100644 index 000000000..47495c082 --- /dev/null +++ b/tests/pos/java-interop/t1782/Test_1.scala @@ -0,0 +1,16 @@ +@ImplementedBy(classOf[Provider]) +trait Service { + def someMethod(): Unit +} + +class Provider + extends Service +{ + // test enumeration java annotations + @Ann(Days.Friday) def someMethod() = () + + // #2103 + @scala.beans.BeanProperty + @Ann(value = Days.Sunday) + val t2103 = "test" +} |