mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
10 lines
191 B
Kotlin
Vendored
10 lines
191 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
fun box(): String {
|
|
val o = "O"
|
|
var result = ""
|
|
|
|
val r = Runnable { result = o + "K" } //capturing local vals and local var
|
|
r.run()
|
|
return result
|
|
} |