mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
21 lines
350 B
Kotlin
21 lines
350 B
Kotlin
package test
|
|
|
|
import kotlin.platform.platformStatic
|
|
|
|
class A {
|
|
default 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"
|
|
}
|
|
} |