FIR: Fix test data after making LHS of assignment an expression

KT-54648
This commit is contained in:
Kirill Rakhman
2023-01-16 09:55:03 +01:00
committed by Space Team
parent ace47c06a5
commit 1eb18f13bd
68 changed files with 372 additions and 117 deletions
@@ -0,0 +1,10 @@
fun foo(): Int = 1
fun test() {
<!VARIABLE_EXPECTED!>foo()<!> = 1
foo().<!VARIABLE_EXPECTED!>toString()<!> = <!ASSIGNMENT_TYPE_MISMATCH!>1<!>
(<!VARIABLE_EXPECTED!>if (true) foo() else 1<!>) = <!ASSIGNMENT_TYPE_MISMATCH!>""<!>
<!VARIABLE_EXPECTED!>run {
print("To string").also { print(it) }
}<!> = <!ASSIGNMENT_TYPE_MISMATCH!>1<!>
}