diff options
author | Martin Odersky <odersky@gmail.com> | 2014-05-05 18:34:59 +0200 |
---|---|---|
committer | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2014-05-20 13:38:48 +0200 |
commit | 82c4db686d07ae8e91f157f5c8b55a1a76917941 (patch) | |
tree | 3024867516bdc571987207296046fe5bcd3ca566 /tests/disabled/java-interop/pos/t1782 | |
parent | 94ceb9895a539b05fd81c8abe040c276178b5507 (diff) | |
download | dotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.tar.gz dotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.tar.bz2 dotty-82c4db686d07ae8e91f157f5c8b55a1a76917941.zip |
Pos tests t17xx - t19xx
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" +} |