mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
253 B
Kotlin
Vendored
16 lines
253 B
Kotlin
Vendored
// 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" }
|
|
}
|