Files
kotlin-fork/compiler/testData/resolvedCalls/hasBothThisObjectAndReceiverArgumentWithoutExplicitReceiver.kt
T

16 lines
203 B
Kotlin

class A {
fun B.foo() {}
}
trait B
fun bar(a: A, b: B) {
with (a) {
with (b) {
<caret>foo()
}
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()