// JVM_ABI_K1_K2_DIFF: KT-63854, KT-76258

open class A<T> {
    open var x: T = "Fail" as T
    get
}

class B : A<String>() {
    override var x: String = "Fail"
    set
}

fun box(): String {
    val a: A<String> = B()
    a.x = "OK"
    return a.x
}
