diff options
author | Martin Odersky <odersky@gmail.com> | 2011-06-21 11:46:17 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-06-21 11:46:17 +0000 |
commit | d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37 (patch) | |
tree | 7e8c970d3c76966f833db12710e422cf83039574 /test/pending/run/t4713 | |
parent | 3f97335832aad9b50a7cd9b5295cdb4c5a939f87 (diff) | |
download | scala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.tar.gz scala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.tar.bz2 scala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.zip |
Added test case.
Diffstat (limited to 'test/pending/run/t4713')
-rw-r--r-- | test/pending/run/t4713/JavaAnnots.java | 14 | ||||
-rw-r--r-- | test/pending/run/t4713/Problem.scala | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/pending/run/t4713/JavaAnnots.java b/test/pending/run/t4713/JavaAnnots.java new file mode 100644 index 0000000000..29541b1ee0 --- /dev/null +++ b/test/pending/run/t4713/JavaAnnots.java @@ -0,0 +1,14 @@ +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.util.List; + +public abstract class JavaAnnots { + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.FIELD) + public @interface Book { + } + + public static final List<String> Book = null; +}
\ No newline at end of file diff --git a/test/pending/run/t4713/Problem.scala b/test/pending/run/t4713/Problem.scala new file mode 100644 index 0000000000..e87f657d2e --- /dev/null +++ b/test/pending/run/t4713/Problem.scala @@ -0,0 +1,5 @@ +object Problem { + def d() { + val v: java.util.List[String] = JavaAnnots.Book + } +} |