Files
kotlin-fork/compiler/testData/codegen/box/safeCall/safeCallOnLong.kt
T
2020-03-04 16:55:33 +03:00

6 lines
135 B
Kotlin
Vendored

fun f(b : Long.(Long)->Long) = 1L?.b(2L)
fun box(): String {
val x = f { this + it }
return if (x == 3L) "OK" else "fail $x"
}