blob: 907588e0011ad9c724d3930e586a4a0aee52cb52 [file] [log] [blame]
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
object A
object B
interface IFoo {
val A.foo: B get() = B
}
interface IInvoke {
operator fun B.invoke() = 42
}
fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
with(A) {
with(fooImpl) {
with(invokeImpl) {
foo()
}
}
}
}