open data class A(val x: Int, val y: String) data class B(val z: String) : A(42, "")