mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
20 lines
224 B
Kotlin
Vendored
20 lines
224 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.Foo.a
|
|
import test.test
|
|
|
|
fun box(): String {
|
|
return test(::a)
|
|
} |