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

22 lines
397 B
Plaintext

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