Files
kotlin/compiler/testData/codegen/box/extensionFunctions/nested2.kt
2015-04-07 13:08:53 +03:00

9 lines
181 B
Kotlin
Vendored

fun box() : String {
val y = 12
val op = { x:Int -> (x + y).toString() }
val op2 : Int.(Int) -> String = { op(this + it) }
return if("27" == 5.op2(10)) "OK" else "fail"
}