New J2K: do not recalculate types for binary & unary expressions and rewrite assignment expressions conversion

#KT-33679 fixed
This commit is contained in:
Ilya Kirillov
2019-09-05 19:40:15 +03:00
parent c93d810685
commit dca0dc1933
45 changed files with 775 additions and 889 deletions
@@ -0,0 +1,16 @@
internal object Test {
@JvmStatic
fun main(args: Array<String>) {
var a = true
var b = true
var c = true
var d = true
val e = true
if (e.let { d = d and it; d }.also { c = it }.let { b = b or it; b }.also { a = it });
while (b.also { a = it });
do {
} while (b.let { a = a xor it; a })
println(c.also { b = it }.let { a = a and it; a })
println(b != c.also { a = it })
}
}