class B(val x: Int) { self: A => def this(a: String) = this() } class A()