Postpone conversions from signed constants to unsigned ones

#KT-26071 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-08-28 16:25:29 +03:00
parent d785b7e4c5
commit daadba0927
7 changed files with 26 additions and 16 deletions
@@ -1,6 +1,8 @@
// WITH_UNSIGNED
// IGNORE_BACKEND: JS_IR, JVM_IR
@file:Suppress("SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED")
fun takeUByte(u: UByte) = u.toByte()
fun takeUShort(u: UShort) = u.toShort()
fun takeUInt(u: UInt) = u.toInt()