"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,9 @@
// WITH_RUNTIME
fun foo(list: List<String>) {
var i = 0
<caret>for (s in list) {
println(i)
val x = s.length * ++i
if (x > 1000) break
}
}