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