3fdd0aacd3
when selector is invalid expression, ensure that fir tree still contains receiver as well as selector KTIJ-23578
9 lines
324 B
Kotlin
Vendored
9 lines
324 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
|
|
fun test() {
|
|
"a".<!ILLEGAL_SELECTOR!>"b"<!>::<!UNRESOLVED_REFERENCE!>foo<!>
|
|
"a".<!ILLEGAL_SELECTOR!>"b"<!>::class
|
|
"a".<!ILLEGAL_SELECTOR!>"b"<!>.<!ILLEGAL_SELECTOR!>"c"<!>::<!UNRESOLVED_REFERENCE!>foo<!>
|
|
"a".<!ILLEGAL_SELECTOR!>"b"<!>.<!ILLEGAL_SELECTOR!>"c"<!>::class
|
|
}
|