JS backend: fix translation for || and && (create new tmp variable if needed)
This commit is contained in:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user