Files
kotlin-fork/compiler/testData/codegen/regressions/kt944.kt
T
2012-09-17 18:00:21 +04:00

8 lines
145 B
Kotlin

fun box() : String {
for (i in "".indices) {
""[i]
}
return "OK"
}
val String?.indices : IntRange get() = IntRange(0, this!!.length)