Files
kotlin/compiler/testData/codegen/box/extensionFunctions/nested2.kt
2019-11-19 11:00:09 +03:00

10 lines
211 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}