Files
kotlin-fork/compiler/testData/codegen/box/smartCasts/implicitExtensionReceiver.kt
T
2019-11-19 11:00:09 +03:00

9 lines
138 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun foo() = "OK"
}
fun A?.bar() = if (this != null) foo() else "FAIL"
fun box() = A().bar()