If to when: label break / continue if necessary #KT-11427 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun testIf(x: Any) {
|
||||
<caret>if (x is String) {
|
||||
println(x)
|
||||
for (c in x) {
|
||||
if (c == ' ')
|
||||
break // do not change
|
||||
}
|
||||
}
|
||||
else {
|
||||
println(x)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user