blob: 346e5b3d5c5f374c07612328c1bb253ff9f9e5d1 [file]
// IGNORE_BACKEND_FIR: JVM_IR
open class A {
fun f(): String =
when (this) {
is B -> x
else -> "FAIL"
}
}
class B(val x: String) : A()
fun box() = B("OK").f()