mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
19 lines
231 B
Kotlin
Vendored
19 lines
231 B
Kotlin
Vendored
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()
|
|
}
|