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,9 @@
|
||||
interface IBase<A> {
|
||||
fun <B> foo(a: A, b: B)
|
||||
val <C> C.id: Map<A, C>?
|
||||
var <D> List<D>.x: D?
|
||||
}
|
||||
|
||||
class Test1<E>(i: IBase<E>) : IBase<E> by i
|
||||
|
||||
class Test2(var j: IBase<String>) : IBase<String> by j
|
||||
Reference in New Issue
Block a user