mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
146 B
Kotlin
Vendored
12 lines
146 B
Kotlin
Vendored
var result = "Fail"
|
|
|
|
fun foo(newResult: String) {
|
|
result = newResult
|
|
}
|
|
|
|
fun box(): String {
|
|
val x = ::foo
|
|
x("OK")
|
|
return result
|
|
}
|