aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorliu fengyun <liu@fengy.me>2017-03-14 21:58:39 +0100
committerliu fengyun <liu@fengy.me>2017-03-14 21:58:39 +0100
commit864432373dc31b62529e5c221e3b8dca238aec18 (patch)
treece90c1023dbf6fa68ebc9e1e78ddc590cfc68471 /tests/pos
parentc08ea413282b76865abbbda38addcbce35953f24 (diff)
downloaddotty-864432373dc31b62529e5c221e3b8dca238aec18.tar.gz
dotty-864432373dc31b62529e5c221e3b8dca238aec18.tar.bz2
dotty-864432373dc31b62529e5c221e3b8dca238aec18.zip
add more tests
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i2051.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i2051.scala b/tests/pos/i2051.scala
index d0e9fed0d..9e29eea22 100644
--- a/tests/pos/i2051.scala
+++ b/tests/pos/i2051.scala
@@ -1,2 +1,9 @@
class A[T](val x:T)
class B[T](override val x:T) extends A[T](x)
+
+class C[T](val x:T, val y: Int, val z: Boolean)
+class D[T](override val x:T, y: Int, z: Boolean) extends C[T](x, y, z)
+
+trait X(val x: Int, y: Int, z: Int)
+trait Y(override val x: Int, y: Int, z: Int) extends X
+class Z(override val x: Int, y: Int, z: Int) extends Y(x, y, z) with X(x, y, z)