Frontend: fixed explicit receiver kind for dynamic call with implicit dispatch receiver.
Additionally added tests for other cases.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class A {
|
||||
fun dynamic.foo() {}
|
||||
}
|
||||
|
||||
fun bar(a: A, b: dynamic) {
|
||||
with (a) {
|
||||
b.<caret>foo()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: fun dynamic.foo(): Unit defined in A
|
||||
|
||||
Explicit receiver kind = EXTENSION_RECEIVER
|
||||
Dispatch receiver = AExt{fun A.<anonymous>(): Unit defined in bar}
|
||||
Extension receiver = b {('Nothing'..'Any?')}
|
||||
Reference in New Issue
Block a user