[JS IR] Add tests for KT-41964 and KT-44981

This commit is contained in:
Sergej Jaskiewicz
2021-11-08 18:46:43 +03:00
committed by Space
parent f5dd0abb76
commit 7b017fad90
5 changed files with 87 additions and 0 deletions
+12
View File
@@ -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"
}