Skip to content

Commit 8644323

Browse files
committed
add more tests
1 parent c08ea41 commit 8644323

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/pos/i2051.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
class A[T](val x:T)
22
class B[T](override val x:T) extends A[T](x)
3+
4+
class C[T](val x:T, val y: Int, val z: Boolean)
5+
class D[T](override val x:T, y: Int, z: Boolean) extends C[T](x, y, z)
6+
7+
trait X(val x: Int, y: Int, z: Int)
8+
trait Y(override val x: Int, y: Int, z: Int) extends X
9+
class Z(override val x: Int, y: Int, z: Int) extends Y(x, y, z) with X(x, y, z)

0 commit comments

Comments
 (0)