[FIR] Implement ILLEGAL_SELECTOR

This commit is contained in:
Ivan Kochurkin
2021-06-25 16:03:25 +03:00
parent a7276b25ae
commit 9f7a8c3948
16 changed files with 98 additions and 57 deletions
@@ -1,8 +1,8 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION
fun test() {
"a"."b"::<!UNRESOLVED_REFERENCE!>foo<!>
"a"."b"::class
"a"."b"."c"::<!UNRESOLVED_REFERENCE!>foo<!>
"a"."b"."c"::class
"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
}