summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-06-21 11:46:17 +0000
committerMartin Odersky <odersky@gmail.com>2011-06-21 11:46:17 +0000
commitd4f8dc660a9b17b30b7c6b909b5a15d028ce7c37 (patch)
tree7e8c970d3c76966f833db12710e422cf83039574 /test/pending
parent3f97335832aad9b50a7cd9b5295cdb4c5a939f87 (diff)
downloadscala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.tar.gz
scala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.tar.bz2
scala-d4f8dc660a9b17b30b7c6b909b5a15d028ce7c37.zip
Added test case.
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/t4713/JavaAnnots.java14
-rw-r--r--test/pending/run/t4713/Problem.scala5
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
+ }
+}