Files
kotlin-fork/compiler/testData/codegen/box/smartCasts/implicitReceiverInWhen.kt
T

14 lines
222 B
Kotlin
Vendored

// 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()