// !CHECK_TYPE open data class A(private val x: Int) class B : A(1) { fun component1(): String = "" } fun foo() { val b = B() checkSubtype(b.component1()) checkSubtype((checkSubtype(b)).component1()) }