Refactoring & clarification: implement new FIR tower resolver
This commit is contained in:
@@ -6,11 +6,11 @@ class B
|
||||
|
||||
fun test(a: A, b: B) {
|
||||
with(b) {
|
||||
a.foo() // here must be error, because a is not extension receiver
|
||||
a.<!INAPPLICABLE_CANDIDATE!>foo<!>() // here must be error, because a is not extension receiver
|
||||
|
||||
a.foo(this)
|
||||
|
||||
(a.foo)()
|
||||
<!INAPPLICABLE_CANDIDATE!>(a.foo)()<!>
|
||||
|
||||
(a.foo)(this)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user