[JS] Support evaluation of const intrinsics for K2
#KT-56023 Fixed #KT-51582 Fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// TARGET_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND_K1: JS_IR, JS_IR_ES6
|
||||
|
||||
const val toStringInConst = 1.0.toString()
|
||||
|
||||
fun box(): String {
|
||||
if (toStringInConst != "1") return "Fail 1"
|
||||
if (1.0.toString() != toStringInConst) return "Fail 2"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user