Control-Flow: Generate instruction for left-hand side of invalid assignments

#KT-8390 Fixed
This commit is contained in:
Alexey Sedunov
2015-07-10 02:33:08 +03:00
parent d2dc44379e
commit df07a61a08
8 changed files with 43 additions and 39 deletions
@@ -3,7 +3,9 @@ fun foo() {
x = ""
}
---------------------
"" <v0>: * NEW: r("") -> <v0>
x = "" <v1>: * NEW: magic[UNSUPPORTED_ELEMENT](x = ""|<v0>) -> <v1>
{ x = "" } <v1>: * COPY
<v1>: * NEW: magic[VALUE_CONSUMER](x|<v0>) -> <v1>
x <v0>: * NEW: magic[UNRESOLVED_CALL](x) -> <v0>
"" <v2>: * NEW: r("") -> <v2>
x = "" !<v3>: *
{ x = "" } !<v3>: * COPY
=====================