Files
kotlin/compiler/testData/codegen/boxInline/complexStack/simple.kt
2016-02-27 15:40:05 +03:00

16 lines
231 B
Kotlin
Vendored

// FILE: 1.kt
package test
inline fun foo(x: String) = x
inline fun processRecords(block: (String) -> String) = block(foo("O"))
// FILE: 2.kt
import test.*
fun box(): String {
return processRecords { ext -> ext + "K" }
}