summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorJan Niehusmann <jan@gondor.com>2013-06-23 17:44:30 +0200
committerJan Niehusmann <jan@gondor.com>2013-06-23 17:44:30 +0200
commitcac899c29ee4e8f1e47a85171a5b58bf60ae8a02 (patch)
treef7f916b23e2c14c44f89bdb4b2556d6e881f0846 /test/files/pos
parentb6bc53479984f9fc0528a8ce3f6f0b582cb4147f (diff)
downloadscala-cac899c29ee4e8f1e47a85171a5b58bf60ae8a02.tar.gz
scala-cac899c29ee4e8f1e47a85171a5b58bf60ae8a02.tar.bz2
scala-cac899c29ee4e8f1e47a85171a5b58bf60ae8a02.zip
SI-3936 - add test case to show that SI-3936 is already fixed
These are exactly the examples given by Lukas Rytz in SI-3936. They fail with 2.10.1 and compile with 2.10.2 as well as current master.
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t3936/BlockingQueue.java3
-rw-r--r--test/files/pos/t3936/Queue.java2
-rw-r--r--test/files/pos/t3936/Test.scala4
3 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t3936/BlockingQueue.java b/test/files/pos/t3936/BlockingQueue.java
new file mode 100644
index 0000000000..b902d4528d
--- /dev/null
+++ b/test/files/pos/t3936/BlockingQueue.java
@@ -0,0 +1,3 @@
+package pack;
+import java.util.Queue;
+public interface BlockingQueue<E> extends Queue<E> { }
diff --git a/test/files/pos/t3936/Queue.java b/test/files/pos/t3936/Queue.java
new file mode 100644
index 0000000000..25c9087601
--- /dev/null
+++ b/test/files/pos/t3936/Queue.java
@@ -0,0 +1,2 @@
+package pack;
+public interface Queue { }
diff --git a/test/files/pos/t3936/Test.scala b/test/files/pos/t3936/Test.scala
new file mode 100644
index 0000000000..c867a05ec9
--- /dev/null
+++ b/test/files/pos/t3936/Test.scala
@@ -0,0 +1,4 @@
+package pack
+trait Test {
+ val b: BlockingQueue[Nothing]
+}