mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
18 lines
258 B
Kotlin
Vendored
18 lines
258 B
Kotlin
Vendored
import A.foo
|
|
import A.bar
|
|
|
|
object A {
|
|
fun foo() = "O"
|
|
fun String.foo() = "K"
|
|
|
|
@JvmStatic
|
|
fun bar(s: Int) = "OK"
|
|
}
|
|
|
|
fun box(): String {
|
|
val static = (::bar)(0)
|
|
if (static != "OK") return "1"
|
|
|
|
return (::foo)() + (String::foo)("")
|
|
}
|