KT-7819 Implement non-local returns

This commit is contained in:
Alexey Andreev
2016-04-04 18:47:55 +03:00
parent a6e1bd1d89
commit 05887f45f7
31 changed files with 310 additions and 182 deletions
@@ -13,13 +13,11 @@ inline fun foo(f: () -> Unit) {
// FILE: 2.kt
// TODO: enabled when KT-6397 gets fixed
// TARGET_BACKEND: JVM
import test.*
var p = "fail"
fun test() {
fun test1() {
foo {
try {
p = "O"
@@ -33,6 +31,6 @@ fun test() {
}
fun box(): String {
test()
test1()
return p
}