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
236 B
Kotlin
Vendored
16 lines
236 B
Kotlin
Vendored
// DUMP_IR
|
|
package second
|
|
|
|
fun box(): String {
|
|
val data = MyClass(object : Base {})
|
|
return data.foo()
|
|
}
|
|
|
|
interface Base {
|
|
fun foo(): String = "OK"
|
|
}
|
|
|
|
class MyClass(val prop: second.Base): Base by prop {
|
|
interface Base
|
|
}
|