diff options
Diffstat (limited to 'test/pending/pos/t3943')
-rw-r--r-- | test/pending/pos/t3943/Outer_1.java | 14 | ||||
-rw-r--r-- | test/pending/pos/t3943/test_2.scala | 8 |
2 files changed, 0 insertions, 22 deletions
diff --git a/test/pending/pos/t3943/Outer_1.java b/test/pending/pos/t3943/Outer_1.java deleted file mode 100644 index 56c8cc7f85..0000000000 --- a/test/pending/pos/t3943/Outer_1.java +++ /dev/null @@ -1,14 +0,0 @@ -public class Outer_1<E> { - abstract class Inner { - abstract public void foo(E e); - } -} - -class Child extends Outer_1<String> { - // the implicit prefix for Inner is Outer<E> instead of Outer<String> - public Inner getInner() { - return new Inner() { - public void foo(String e) { System.out.println("meh "+e); } - }; - } -} diff --git a/test/pending/pos/t3943/test_2.scala b/test/pending/pos/t3943/test_2.scala deleted file mode 100644 index a19db8b226..0000000000 --- a/test/pending/pos/t3943/test_2.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Test extends App { - val x: Child = new Child - x.getInner.foo("meh") -// ^ -// error: type mismatch; -// found : java.lang.String("meh") -// required: E -} |