Files
kotlin-fork/compiler/testData/resolvedCalls/hasBothThisObjectAndReceiverArgument.txt
T

20 lines
270 B
Plaintext

class A {
fun B.foo() {}
}
trait B
fun bar(a: A, b: B) {
with (a) {
b.<caret>foo()
}
}
fun <T, R> with(receiver: T, f: T.() -> R) : R = receiver.f()
Resolved call:
Explicit receiver kind = RECEIVER_ARGUMENT
This object = A
Receiver argument = b