From cac899c29ee4e8f1e47a85171a5b58bf60ae8a02 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Sun, 23 Jun 2013 17:44:30 +0200 Subject: 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. --- test/files/pos/t3936/BlockingQueue.java | 3 +++ test/files/pos/t3936/Queue.java | 2 ++ test/files/pos/t3936/Test.scala | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 test/files/pos/t3936/BlockingQueue.java create mode 100644 test/files/pos/t3936/Queue.java create mode 100644 test/files/pos/t3936/Test.scala (limited to 'test/files/pos') 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 extends Queue { } 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] +} -- cgit v1.2.3