Initial implementation of loop-to-call-chain intention

This commit is contained in:
Valentin Kipyatkov
2016-03-08 18:12:23 +01:00
parent c50cf13611
commit 12b1a99a6a
80 changed files with 3462 additions and 17 deletions
@@ -0,0 +1,16 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo() {
MainLoop@
for (i in 1..10) {
var result: String? = null
<caret>for (s in list()) {
if (s.length > 0) {
result = s
break@MainLoop
}
}
}
}
fun list(): List<String> = listOf()