Intrinsify 'in' with unsigned ranges

This commit is contained in:
Dmitry Petrov
2018-12-28 16:06:19 +03:00
parent e6e0e9976c
commit b878626919
13 changed files with 227 additions and 1 deletions
@@ -0,0 +1,11 @@
// IGNORE_BACKEND: JVM_IR
fun testUIntRangeLiteral(a: UInt, b: UInt) = 42u in a .. b
fun testULongRangeLiteral(a: ULong, b: ULong) = 42UL in a .. b
fun testUIntUntil(a: UInt, b: UInt) = 42u in a until b
fun testULongUntil(a: ULong, b: ULong) = 42UL in a until b
// 0 contains