Files
kotlin-fork/compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt
T
Alexander Udalov 5f367278c1 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.
2019-12-12 15:02:32 +03:00

10 lines
207 B
Kotlin
Vendored

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