mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
17 lines
197 B
Kotlin
Vendored
17 lines
197 B
Kotlin
Vendored
// FILE: 1.kt
|
|
|
|
package test
|
|
|
|
class Foo(val a: String)
|
|
|
|
inline fun test(s: () -> String): String {
|
|
return s()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return test(Foo("OK")::a)
|
|
} |