From 82c4db686d07ae8e91f157f5c8b55a1a76917941 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 5 May 2014 18:34:59 +0200 Subject: Pos tests t17xx - t19xx --- tests/pos/t1896/D0.scala | 11 +++++++++++ tests/pos/t1896/D1.scala | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 tests/pos/t1896/D0.scala create mode 100644 tests/pos/t1896/D1.scala (limited to 'tests/pos/t1896') diff --git a/tests/pos/t1896/D0.scala b/tests/pos/t1896/D0.scala new file mode 100644 index 000000000..6b3150d96 --- /dev/null +++ b/tests/pos/t1896/D0.scala @@ -0,0 +1,11 @@ +package p + +class X[T] + +trait A { + def m(s:X[_]): Unit = {} +} + +trait B extends A { + def f: Unit = { super.m(null) } +} diff --git a/tests/pos/t1896/D1.scala b/tests/pos/t1896/D1.scala new file mode 100644 index 000000000..e1ab50679 --- /dev/null +++ b/tests/pos/t1896/D1.scala @@ -0,0 +1,2 @@ +package p +class C extends B -- cgit v1.2.3