Files
kotlin/compiler/testData/codegen/box/controlStructures/kt17590_long.kt
2018-07-10 13:34:19 +03:00

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"
}