mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
20 lines
302 B
Kotlin
Vendored
20 lines
302 B
Kotlin
Vendored
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"
|
|
}
|
|
} |