Files
kotlin/compiler/testData/codegen/box/jvmStatic/defaultCrossFile.kt
Juan Chen 4c04ad2371 FIR: Add bindings for dispatch receiver parameters
Before this commit, such descriptors have null owners, which causes problems when the getter of the owner property is called.
2019-12-27 10:13:44 +03:00

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
}
}