Psi2ir: support generic properties in class delegation

Since property accessor descriptors (unlike corresponding IR elements)
do not have type parameters, we need to take them from the corresponding
property to ensure the correct IR for delegated property accessors.
This commit is contained in:
Alexander Udalov
2019-12-11 16:30:31 +03:00
parent 025360edc4
commit 5f367278c1
13 changed files with 452 additions and 29 deletions
@@ -0,0 +1,10 @@
// IGNORE_BACKEND_FIR: JVM_IR
interface I {
val <T> T.id: T
get() = this
}
class A(i: I) : I by i
fun box(): String = with(A(object : I {})) { "OK".id }