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

16 lines
242 B
Plaintext

class A {}
fun A.foo() {}
fun bar(a: A) {
a.<caret>foo()
}
Resolved call:
Resulting descriptor: fun A.foo(): Unit defined in root package
Explicit receiver kind = RECEIVER_ARGUMENT
This object = NO_RECEIVER
Receiver argument = a {A}