[IR BE] Refactored FoldConstantLowering

- Fix `toString` evaluation for unsigned types in FoldConstantLowering
 - make corner cases around float/double evaluation work for K/JS
 - remove usage of kotlin type
This commit is contained in:
Roman Artemev
2019-12-09 16:54:34 +03:00
committed by romanart
parent e4f83b96a3
commit 6ba8fbd451
5 changed files with 129 additions and 38 deletions
-1
View File
@@ -1,7 +1,6 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
fun box(): String {
if (239.toByte().toString() != (239.toByte() as Byte?).toString()) return "byte failed"