Files
kotlin/compiler/testData/codegen/bytecodeText/ranges/inOptimizableUnsignedRange.kt
2020-02-20 14:20:21 +03:00

13 lines
334 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TODO KT-36829 Optimize 'in' expressions in 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