mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
248 B
Kotlin
Vendored
10 lines
248 B
Kotlin
Vendored
fun Int.until(other: Int) = this..other - 1
|
|
fun foo() {
|
|
val range = 1 until 2
|
|
for (i in range) {}
|
|
}
|
|
|
|
// 1 INVOKEVIRTUAL kotlin/ranges/IntRange.getFirst \(\)I
|
|
// 1 getFirst
|
|
// 1 INVOKEVIRTUAL kotlin/ranges/IntRange.getLast \(\)I
|
|
// 1 getLast |