Files
kotlin-fork/backend.native/tests/external/codegen/boxInline/complexStack/simpleExtension.kt
T
2017-03-13 15:31:46 +03:00

16 lines
253 B
Kotlin

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