[JS IR BE] Support Number.to(Byte|Short|Int|Float|Double|Long)

This commit is contained in:
Svyatoslav Kuzmich
2018-10-10 20:50:01 +03:00
parent bad9534abd
commit 783f27c554
5 changed files with 33 additions and 21 deletions
@@ -86,6 +86,10 @@ class IrBuiltIns(
val charType = char.toIrType()
val charClass = builtIns.char.toIrSymbol()
val number = builtIns.number.defaultType
val numberType = number.toIrType()
val numberClass = builtIns.number.toIrSymbol()
val byte = builtIns.byteType
val byteType = byte.toIrType()
val byteClass = builtIns.byte.toIrSymbol()