mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
21 lines
349 B
Kotlin
Vendored
21 lines
349 B
Kotlin
Vendored
package test
|
|
|
|
import kotlin.platform.platformStatic
|
|
|
|
class A {
|
|
companion object {
|
|
@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"
|
|
}
|
|
} |