mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
13 lines
334 B
Kotlin
Vendored
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
|