5f367278c1
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.
11 lines
168 B
Kotlin
Vendored
11 lines
168 B
Kotlin
Vendored
// 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 }
|