Files
kotlin-fork/compiler/testData/resolvedCalls/hasBothThisObjectAndReceiverArgument.txt
T
2014-09-01 12:32:48 +04:00

21 lines
283 B
Plaintext

class A {
fun B.foo() {}
}
trait B
fun bar(a: A, b: B) {
with (a) {
b.<caret>foo()
}
}
Resolved call:
Resulting descriptor: fun B.foo(): Unit
Explicit receiver kind = RECEIVER_ARGUMENT
This object = AExt{fun A.<anonymous>(): Unit}
Receiver argument = b {B}