Check for continue-statement of the inner loop!

This commit is contained in:
Valentin Kipyatkov
2016-04-05 20:02:20 +03:00
parent 8c498af3d8
commit 863040700e
9 changed files with 42 additions and 11 deletions
@@ -0,0 +1,10 @@
// WITH_RUNTIME
fun foo(list: List<String>): String? {
<caret>for (s in list) {
for (line in s.lines()) {
if (line.isBlank()) continue
return line
}
}
return null
}