[FIR] Implement UNRESOLVED_REFERENCE_WRONG_RECEIVER

This commit is contained in:
Ivan Kochurkin
2021-08-10 16:40:51 +03:00
committed by Space
parent 34cc7e5199
commit 84c5f58cab
129 changed files with 322 additions and 481 deletions
@@ -29,7 +29,7 @@ fun test() {
oldAndNew %= 1
val onlyOld = OnlyOld()
onlyOld <!INAPPLICABLE_CANDIDATE!>%=<!> 1
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>onlyOld %= 1<!>
val onlyNew = OnlyNew()
onlyNew %= 1
@@ -26,11 +26,11 @@ class IntAndUnit {
fun test() {
OldAndNew() % 1
OnlyOld() <!INAPPLICABLE_CANDIDATE!>%<!> 1
OnlyOld() <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>%<!> 1
OnlyNew() % 1
Sample() % 1
takeInt(IntAndUnit() % 1)
}
fun takeInt(x: Int) {}
fun takeInt(x: Int) {}
@@ -9,5 +9,5 @@ object RemExtension
operator fun RemExtension.rem(x: Int) {}
fun foo() {
OldMod <!INAPPLICABLE_CANDIDATE!>%<!> 123
}
OldMod <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>%<!> 123
}