Files
kotlin-fork/compiler/testData/codegen/box/delegation/nestedNameClash2.kt
T
Dmitrii Gridin 0b253dc815 [FIR] resolve delegate field return type in correct scope
We should resolve it in the same way as delegate constructor call
to avoid access to nested class scopes

^KT-63522 Fixed
^KT-63042
2023-11-21 08:11:21 +00:00

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
}