Support platformStatic for properties

#KT-5766 Fixed
This commit is contained in:
Michael Bogdanov
2014-11-14 15:48:45 +03:00
parent 5412a67d29
commit 2cc9d8e29b
24 changed files with 450 additions and 165 deletions
@@ -0,0 +1,21 @@
package test
import kotlin.platform.platformStatic
class A {
class 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"
}
}