mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
165 B
Kotlin
11 lines
165 B
Kotlin
import kotlin.platform.*
|
|
|
|
[platformName("bar")]
|
|
fun foo() = "foo"
|
|
|
|
fun box(): String {
|
|
val f = (::foo)()
|
|
if (f != "foo") return "Fail: $f"
|
|
|
|
return "OK"
|
|
} |