chore: remove unused break statements from inlined functions bodies.

This commit is contained in:
Artem Kobzar
2022-03-19 20:04:22 +00:00
committed by Space
parent c7d4b97fe1
commit aa85b755c1
6 changed files with 38 additions and 4 deletions
@@ -0,0 +1,12 @@
inline fun foo(l: () -> Unit) { l() }
inline fun bar(l: () -> Unit) { l() }
fun box(): String {
foo {
bar {
return@foo;
}
return "Failed: labeled return was not added"
}
return "OK"
}