mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
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"
|
|
}
|