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