Files
kotlin/compiler/testData/codegen/bytecodeText/ranges/inOptimizableUnsignedRange.kt
2019-01-10 17:17:51 +03:00

12 lines
281 B
Kotlin
Vendored

// 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