Fix conversion of assignment as expression in J2K

Blockless if's and so with assignment as expression inside
should turn into blockful
 #KT-16816 fixed
This commit is contained in:
Simon Ogorodnik
2017-03-31 14:16:10 +03:00
parent 86137e1f65
commit 57c1d8eda4
13 changed files with 136 additions and 5 deletions
@@ -0,0 +1,14 @@
class SomeClass {
internal fun doSomeIf(i: Int) {
val a: Int
val b: Int
val c: Int
if (i < 0) {
b = i
a = b
} else {
c = i
b = c
}
}
}