chore: remove unused break statements from inlined functions bodies.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user