JS backend: fix translation for || and && (create new tmp variable if needed)

This commit is contained in:
Michael Nedzelsky
2014-09-02 16:45:21 +04:00
parent 40e5d6c8f5
commit 5967b6637f
2 changed files with 10 additions and 2 deletions
@@ -8,6 +8,8 @@ fun bar(s: String, value: Boolean): Boolean {
}
fun box(): String {
val a = if (true || if(bar("A", false)) {2} else {3} == 0) { }
assertEquals("", global)
// Simple || Simple
global = ""