[NI] Fix hierarchy of resolution atoms for lambda with non-local return
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
fun <T> outer(command: () -> T) : T = command()
|
||||
|
||||
inline fun <K> inner(action: () -> K): K = action()
|
||||
|
||||
fun test1(): String {
|
||||
outer {
|
||||
inner {
|
||||
return@outer
|
||||
}
|
||||
}
|
||||
|
||||
return "O"
|
||||
}
|
||||
|
||||
fun test2(): String {
|
||||
outer {
|
||||
return@outer
|
||||
inner {
|
||||
}
|
||||
}
|
||||
|
||||
return "K"
|
||||
}
|
||||
|
||||
|
||||
fun box(): String {
|
||||
return test1() + test2()
|
||||
}
|
||||
Reference in New Issue
Block a user