0b253dc815
We should resolve it in the same way as delegate constructor call to avoid access to nested class scopes ^KT-63522 Fixed ^KT-63042
16 lines
279 B
Kotlin
Vendored
16 lines
279 B
Kotlin
Vendored
// DUMP_IR
|
|
package second
|
|
|
|
fun box(): String {
|
|
val data = MyClass(object : Base<Base<Int>> {})
|
|
return data.foo()
|
|
}
|
|
|
|
interface Base<A> {
|
|
fun foo(): String = "OK"
|
|
}
|
|
|
|
class MyClass(val prop: second.Base<second.Base<Int>>): Base<Base<Int>> by prop {
|
|
interface Base
|
|
}
|