mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
19 lines
230 B
Kotlin
19 lines
230 B
Kotlin
import kotlin.platform.platformStatic
|
|
|
|
var holder = ""
|
|
|
|
fun getA(): A {
|
|
holder += "OK"
|
|
return A
|
|
}
|
|
|
|
object A {
|
|
platformStatic fun a(): String {
|
|
return holder
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return getA().a()
|
|
}
|