Files
kotlin-fork/compiler/testData/resolvedCalls/dynamic/hasBothDispatchAndExtensionReceivers.txt
T
2022-02-10 21:20:47 +00:00

20 lines
310 B
Plaintext
Vendored

class A {
fun dynamic.foo() {}
}
fun bar(a: A, b: dynamic) {
with (a) {
b.<caret>foo()
}
}
Resolved call:
Resulting descriptor: fun foo(): dynamic defined in bar.`<anonymous>`
Explicit receiver kind = DISPATCH_RECEIVER
Dispatch receiver = b {dynamic}
Extension receiver = NO_RECEIVER