Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/funAccess.kt
T
2018-06-09 19:15:38 +03:00

23 lines
333 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
var holder = ""
fun getA(): A {
holder += "OK"
return A
}
object A {
@JvmStatic fun a(): String {
return holder
}
}
fun box(): String {
return getA().a()
}