mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
34 lines
389 B
Kotlin
Vendored
34 lines
389 B
Kotlin
Vendored
package test
|
|
|
|
object A {
|
|
|
|
val b: String = "OK"
|
|
|
|
@JvmStatic fun test1() {
|
|
b
|
|
test2()
|
|
test3()
|
|
"".test4()
|
|
}
|
|
|
|
@JvmStatic fun test2() {
|
|
b
|
|
}
|
|
|
|
fun test3() {
|
|
|
|
}
|
|
|
|
@JvmStatic fun String.test4() {
|
|
b
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
A.test1()
|
|
A.test2()
|
|
A.test3()
|
|
with(A) {
|
|
A.test1()
|
|
}
|
|
} |