mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
222 B
Kotlin
15 lines
222 B
Kotlin
import kotlin.platform.platformStatic
|
|
|
|
object A {
|
|
|
|
platformStatic inline fun test(b: String = "OK") : String {
|
|
return b
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
|
|
if (A.test() != "OK") return "fail 1"
|
|
|
|
return "OK"
|
|
} |