KT-944 iterations over empty ranges
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun box() : String {
|
||||
for (i in "".indices) {
|
||||
""[i]
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
|
||||
val String?.indices : IntRange get() = IntRange(0, this.sure().length)
|
||||
Reference in New Issue
Block a user