1 2 3 4 5 6 7 8 9 10 11 12
trait A class B(val x: Int) { self: A => def this() = this() } object Test extends B(2) with A { def main(args: Array[String]) { } }