blob: 6ecc8c384bfb438f4d53eb35d0e93af4c261c6c5 (
plain) (
tree)
|
|
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
}
object templateParentsNeg1 {
class C[T]
trait D extends C[String]
trait E extends C[Int]
val x = new D with E // error no type fits between inferred bounds
}
|