KT-9644: override default behavior for non-local return in FixStackAnalyzer

This commit is contained in:
Dmitry Petrov
2015-10-22 17:29:30 +03:00
parent 5d1bcbf2be
commit ccad435850
5 changed files with 48 additions and 0 deletions
@@ -0,0 +1,10 @@
fun foo() {
with(1) {
return (1..2).forEach { it }
}
}
fun box(): String {
foo()
return "OK"
}