Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/defaultCrossFile.kt
T
2019-11-19 11:00:09 +03:00

23 lines
274 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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
}
}