JS: fix translation of && and || operators when their RHS declare temporary variables. See KT-16350
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
fun foo(arg: Any): Boolean {
|
||||
return arg == "x"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val values = listOf(null, "x")
|
||||
return if (values[0] == null && foo(values[1]!!)) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user