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:
@@ -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 }
|
||||
Reference in New Issue
Block a user