[FIR] Fix crash on assignment expression with incorrect lvalue with LT mode

^KT-65241 Fixed
This commit is contained in:
Ivan Kochurkin
2024-02-13 15:18:57 +01:00
committed by Space Team
parent c2e28149e6
commit 9a86b83a0c
9 changed files with 48 additions and 1 deletions
@@ -0,0 +1,7 @@
// ISSUE: KT-65241
object A
fun test() {
A.<!SYNTAX!>else<!> = <!ASSIGNMENT_TYPE_MISMATCH!>42<!>
}
@@ -0,0 +1,7 @@
// ISSUE: KT-65241
object A
fun test() {
A.<!SYNTAX!>else<!> = 42
}
@@ -3,6 +3,9 @@ ERR:
test.kt:4:13: error: classifier 'class System : Any' does not have a companion object, so it cannot be used as an expression.
val s = System.in
^^^^^^
test.kt:4:13: error: syntax error: Qualified expression without selector.
val s = System.in
^^^^^^^^^
test.kt:4:20: error: syntax error: Expecting an element.
val s = System.in
^^