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








                                                                         
object templateParentsNeg {

  class C(x: String)
  class C2
  trait D extends C("a") // error: traits may not call class constructors

  new C("b") with C2     // error: C2 is not a trait

}