blob: 091174d542b19baff5159b552db2092d8ad094da [file] [log] [blame]
open class A {
fun f(): String =
when (this) {
is B -> x
else -> "FAIL"
}
}
class B(val x: String) : A()
fun box() = B("OK").f()