[compiler] preserve fir receiver in tree

when selector is invalid expression,
ensure that fir tree still contains receiver as well as selector

KTIJ-23578
This commit is contained in:
Anna Kozlova
2022-11-21 15:34:41 +01:00
committed by Space Team
parent 1aae9d6456
commit 3fdd0aacd3
17 changed files with 243 additions and 2 deletions
@@ -3,6 +3,6 @@
fun test() {
"a".<!ILLEGAL_SELECTOR!>"b"<!>::<!UNRESOLVED_REFERENCE!>foo<!>
"a".<!ILLEGAL_SELECTOR!>"b"<!>::class
"a"."b".<!ILLEGAL_SELECTOR!>"c"<!>::<!UNRESOLVED_REFERENCE!>foo<!>
"a"."b".<!ILLEGAL_SELECTOR!>"c"<!>::class
"a".<!ILLEGAL_SELECTOR!>"b"<!>.<!ILLEGAL_SELECTOR!>"c"<!>::<!UNRESOLVED_REFERENCE!>foo<!>
"a".<!ILLEGAL_SELECTOR!>"b"<!>.<!ILLEGAL_SELECTOR!>"c"<!>::class
}