abstract class A(val x: Int) class B : A { constructor(x: String) : super(x.length) }