[FIR] Fix crash on assignment expression with incorrect lvalue with LT mode
^KT-65241 Fixed
This commit is contained in:
committed by
Space Team
parent
c2e28149e6
commit
9a86b83a0c
+7
@@ -0,0 +1,7 @@
|
||||
// ISSUE: KT-65241
|
||||
|
||||
object A
|
||||
|
||||
fun test() {
|
||||
A.<!SYNTAX!>else<!> = <!ASSIGNMENT_TYPE_MISMATCH!>42<!>
|
||||
}
|
||||
+7
@@ -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
|
||||
^^
|
||||
|
||||
Reference in New Issue
Block a user