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
17 lines
271 B
Kotlin
Vendored
17 lines
271 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FIR_DUMP
|
|
package second
|
|
|
|
fun main() {
|
|
val data = MyClass(object : Base<Base<Int>> {})
|
|
data.foo()
|
|
}
|
|
|
|
interface Base<A> {
|
|
fun foo() {}
|
|
}
|
|
|
|
class MyClass(val prop: second.Base<second.Base<Int>>): Base<Base<Int>> by prop {
|
|
interface Base
|
|
}
|