Files
kotlin-fork/backend.native/tests/codegen/try/finally9.kt
T
Svyatoslav Scherbina e2dbeae85e backend: add tests for try-catch-finally and throwing exceptions
also add some tests for bugs with unreachable code handling and variables
2016-11-28 20:24:27 +07:00

21 lines
350 B
Kotlin

fun main(args : Array<String>) {
do {
try {
break
} finally {
println("Finally 1")
}
} while (false)
var stop = false
while (!stop) {
try {
stop = true
continue
} finally {
println("Finally 2")
}
}
println("After")
}