Files
kotlin-fork/js/js.translator/testData/inlineMultiFile/cases/closureChain/closureChain.1.kt
T
2014-10-03 14:23:47 +04:00

17 lines
337 B
Kotlin

/*
* Copy of JVM-backend test
* Found at: compiler/testData/codegen/boxInline/complex/closureChain.1.kt
*/
package foo
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"
}