mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
15 lines
208 B
Kotlin
Vendored
15 lines
208 B
Kotlin
Vendored
class X {
|
|
val result: String
|
|
inline get() = "OK"
|
|
|
|
fun x(): String {
|
|
return go(::result)
|
|
}
|
|
}
|
|
|
|
inline fun go(f: () -> String): String = f()
|
|
|
|
fun box(): String {
|
|
return X().x()
|
|
}
|