[JS IR BE] Fix runtime compareTo(Number, Long)

This commit is contained in:
Svyatoslav Kuzmich
2018-10-02 17:44:34 +03:00
parent 44d56cb278
commit c7bde6a5e6
2 changed files with 11 additions and 12 deletions
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: NATIVE
// IGNORE_BACKEND: JS_IR
fun box(): String {
if (0.toByte().compareTo(-0.0) != 1) return "fail 1.1"
if (0.toByte().compareTo(-0.0F) != 1) return "fail 1.2"