JS: support signed constant expressions as unsigned primitive arguments

This commit is contained in:
Anton Bannykh
2018-08-17 13:21:31 +03:00
committed by Ilya Gorbunov
parent 934e11aa60
commit 6103df0b31
2 changed files with 23 additions and 1 deletions
@@ -1,5 +1,5 @@
// WITH_UNSIGNED
// IGNORE_BACKEND: JS_IR, JVM_IR, JS
// IGNORE_BACKEND: JS_IR, JVM_IR
fun takeUByte(u: UByte) = u.toByte()
fun takeUShort(u: UShort) = u.toShort()