"Use withIndex()" intention&inspection

This commit is contained in:
Valentin Kipyatkov
2016-05-13 17:02:40 +03:00
parent 46055dfd2d
commit d658d3b9cf
23 changed files with 248 additions and 15 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
fun foo(list: List<String>) {
for ((i, s) in list.withIndex()) {
println(i)
val x = s.length * (i + 1)
if (x > 1000) break
}
}