mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 08:31:29 +00:00
20 lines
303 B
Kotlin
20 lines
303 B
Kotlin
package test
|
|
|
|
import kotlin.platform.platformStatic
|
|
|
|
object A {
|
|
[platformStatic] val b: String = "OK"
|
|
|
|
var A.c: String
|
|
[platformStatic]get() = "OK"
|
|
[platformStatic]set(t: String) {}
|
|
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
A.b
|
|
with(A) {
|
|
A.c
|
|
A.c = "123"
|
|
}
|
|
} |