aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1896
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2014-05-20 16:04:39 +0200
committerDmitry Petrashko <dark@d-d.me>2014-05-20 16:04:39 +0200
commitdeea15e9b0c56b7f55f5e40665d5e00baef4f028 (patch)
treebfb268ddfb648c4e3bba5081494f6bc0f506fe20 /tests/pos/t1896
parent8a4186ff782efefb98686aa35bf7f5dd1418210d (diff)
parent6b090d1204b5ee553cf9f04b83e48904dcd88183 (diff)
downloaddotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.tar.gz
dotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.tar.bz2
dotty-deea15e9b0c56b7f55f5e40665d5e00baef4f028.zip
Merge pull request #133 from dotty-staging/more-tests
More tests
Diffstat (limited to 'tests/pos/t1896')
-rw-r--r--tests/pos/t1896/D0.scala11
-rw-r--r--tests/pos/t1896/D1.scala2
2 files changed, 13 insertions, 0 deletions
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