aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/traitParamsTyper.scala
blob: f87ba3691d7f96613962246906c3a34fe9cd928f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                            
trait T(x: Int) {
  def f = x
}

class C(x: Int) extends T() // error

trait U extends C with T

trait V extends C(1) with T(2) // two errors

trait W extends T(3) // error


class E extends T(0)
class F extends E with T(1) // error