Files
kotlin-fork/compiler/testData/resolvedCalls/explicitReceiverIsExtensionReceiver.txt
T
Alexander Udalov 3a8ad45dec Append newline to EOF for .txt test data files
Reverts and fixes 102f0d3
2014-10-21 03:18:27 +04:00

17 lines
251 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 = EXTENSION_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = a {A}