73799e2c3c
It's done with similar constructions where possible trying to preserve intended behavior. Some usages are removed because they test exactly the feature that we are going to drop soon.
17 lines
330 B
Kotlin
Vendored
17 lines
330 B
Kotlin
Vendored
/*
|
|
* 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, { -> this.length() })
|
|
}
|
|
|
|
fun box(): String {
|
|
if (test1() != 2) return "test1: ${test1()}"
|
|
|
|
return "OK"
|
|
} |