mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
19 lines
206 B
Kotlin
Vendored
19 lines
206 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
object Foo {
|
|
val a: String = "OK"
|
|
}
|
|
|
|
inline fun test(s: () -> String): String {
|
|
return s()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return test(Foo::a)
|
|
} |