Ensure that 'in/!in x until y' intrinsic works

This commit is contained in:
Dmitry Petrov
2017-06-30 18:03:33 +03:00
parent 05cad83c79
commit ec99fa2142
8 changed files with 72 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// WITH_RUNTIME
fun testByte(a: Byte, x: Byte, y: Byte) = a in x until y
fun testShort(a: Short, x: Short, y: Short) = a in x until y
fun testInt(a: Int, x: Int, y: Int) = a in x until y
fun testLong(a: Long, x: Long, y: Long) = a in x until y
// 0 INVOKESTATIC kotlin/ranges/RangesKt.until
// 0 INVOKEVIRTUAL