mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
10 lines
166 B
Kotlin
Vendored
10 lines
166 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
fun String?.foo() = this ?: "OK"
|
|
|
|
fun foo(i: Int?): String {
|
|
if (i == null) return i.foo()
|
|
return "$i"
|
|
}
|
|
|
|
fun box() = foo(null)
|