Support :: references to properties in frontend

#KT-1183 In Progress
This commit is contained in:
Alexander Udalov
2014-05-08 22:28:07 +04:00
parent 52dadfc264
commit aa4d6a4ea7
22 changed files with 584 additions and 39 deletions
@@ -0,0 +1,19 @@
class A {
val foo: Unit = Unit.VALUE
var bar: String = ""
var self: A
get() = this
set(value) { }
}
fun A.test() {
val x = ::foo
val y = ::bar
val z = ::self
x : KMemberProperty<A, Unit>
y : KMutableMemberProperty<A, String>
z : KMutableMemberProperty<A, A>
y.set(z.get(A()), x.get(A()).toString())
}