aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/traitParamsTyper.scala
blob: e97906b50cdbd228702f7382a429cd36011322ae (plain) (tree)
1
2
3
4
5
6
7
8
9







                                    
                                                






                                    
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) // error // error

trait W extends T(3) // error


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