mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
204 B
Kotlin
Vendored
10 lines
204 B
Kotlin
Vendored
fun foo(x: Any?, y: Any?) = 0L
|
|
|
|
inline fun test(value: Any?): Long {
|
|
return foo(null, value ?: return 1L)
|
|
}
|
|
|
|
fun box(): String {
|
|
val t = test(null)
|
|
return if (t == 1L) "OK" else "fail: t=$t"
|
|
} |