Files
kotlin-fork/compiler/testData/codegen/box/involvesIrInterpreter/jsIrToConst.kt
T
2023-03-24 15:55:04 +00:00

11 lines
254 B
Kotlin
Vendored

// 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"
}