mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
18 lines
230 B
Kotlin
Vendored
18 lines
230 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
inline fun foo(x: () -> String, z: String) = x() + z
|
|
|
|
fun String.id() = this
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box() : String {
|
|
var zeroSlot = "fail";
|
|
val z = "O"
|
|
return foo(z::id, "K")
|
|
}
|