IR: fix property reference symbol binding for generic properties

This commit is contained in:
Dmitry Petrov
2019-02-28 15:30:30 +03:00
parent 8b4dab7c25
commit bd9c5645cd
4 changed files with 224 additions and 5 deletions
@@ -0,0 +1,18 @@
class Value<T>(var value: T = null as T, var text: String? = null)
val <T> Value<T>.additionalText by DVal(Value<T>::text)
val <T> Value<T>.additionalValue by DVal(Value<T>::value)
class DVal(val kmember: Any) {
operator fun getValue(t: Any?, p: Any) = 42
}
var recivier : Any? = "fail"
var value2 : Any? = "fail2"
var <T> T.bar : T
get() = this
set(value) { recivier = this; value2 = value}
val barRef = String?::bar