[JS IR] Add tests for KT-41964 and KT-44981
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1267
|
||||
|
||||
const val x = '2'
|
||||
const val y = '+'
|
||||
const val z = '3'
|
||||
|
||||
fun box(): String {
|
||||
if (js(x.toString() + z) !== 23) return "Fail 1"
|
||||
if (js(x.toString() + y + z) !== 5) return "Fail 2"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user