Files
kotlin-fork/compiler/testData/codegen/boxInline/closureChain/1.kt
T
2014-03-03 15:43:35 +04:00

11 lines
214 B
Kotlin

fun test1(): Int {
val inlineX = Inline()
return inlineX.foo({(z: Int) -> "" + z}, 25, {String.() -> this.length})
}
fun box(): String {
if (test1() != 2) return "test1: ${test1()}"
return "OK"
}