mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
308 B
Kotlin
Vendored
19 lines
308 B
Kotlin
Vendored
package z
|
|
|
|
import JavaBaseClass
|
|
|
|
object KotlinExtender : JavaBaseClass() {
|
|
@JvmStatic fun test(): String {
|
|
return runSlowly {
|
|
foo = "OK"
|
|
foo
|
|
}
|
|
}
|
|
}
|
|
fun runSlowly(f: () -> String): String {
|
|
return f()
|
|
}
|
|
|
|
fun box(): String {
|
|
return KotlinExtender.test()
|
|
} |