mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
21 lines
243 B
Kotlin
Vendored
21 lines
243 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// FILE: 1.kt
|
|
|
|
fun box(): String {
|
|
|
|
if (A.test() != "OK") return "fail 1"
|
|
|
|
return "OK"
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
object A {
|
|
|
|
@JvmStatic fun test(b: String = "OK") : String {
|
|
return b
|
|
}
|
|
}
|
|
|