Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/multipleImplicitReceivers.kt
T
2020-03-19 09:51:01 +03:00

23 lines
327 B
Kotlin
Vendored

// Copy of IR test
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) {
foo
with(invokeImpl) {
foo()
}
}
}
}