7b4e0b2f5d
Do not destructively update the @JvmStatic function, instead create a copy on first access, and replace the original with the copy in the jvm static lowering. This ensures that the original function is seen in other lowerings independently of file lowering order.
14 lines
145 B
Kotlin
Vendored
14 lines
145 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_RUNTIME
|
|
// FILE: u1.kt
|
|
|
|
object O {
|
|
@JvmStatic
|
|
fun foo() = "OK"
|
|
}
|
|
|
|
// FILE: u2.kt
|
|
|
|
fun box() = (O::foo)()
|