Files
kotlin-fork/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.kt
T
2016-10-18 09:08:32 +03:00

20 lines
291 B
Kotlin
Vendored

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()
}
}
}
}