Files
kotlin/compiler/testData/codegen/box/safeCall/safeCallOnLong.kt
2014-10-07 10:13:52 +04: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"
}