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
@@ -9,12 +9,14 @@ L0:
magic[FAKE_INITIALIZER](c: C) -> <v0>
w(c|<v0>)
2 mark({ this = c })
r(c) -> <v1>
magic[UNSUPPORTED_ELEMENT](this = c|<v1>) -> <v2>
r(this, <this>) -> <v1>
magic[VALUE_CONSUMER](this|<v1>) -> <v2>
r(c) -> <v3>
w(this|<v3>)
L1:
1 <END> NEXT:[<SINK>]
1 <END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
<SINK> PREV:[<ERROR>, <END>]
=====================