Some fixes for try...finally

This commit is contained in:
Andrey Breslav
2011-04-14 16:54:08 +04:00
parent 6e9e22df16
commit 652c11aa07
5 changed files with 24 additions and 1 deletions
+8
View File
@@ -123,3 +123,11 @@ fun t3(a : Int) {
}
}
fun tf() {
try {
return 1
}
finally {
return 2
}
}
@@ -129,3 +129,8 @@ fun blockAndAndMismatch() : Boolean {
<error>(return true) || (return false)</error>
<error>1</error>
}
fun tf() {
try {return} finally{return}
<error>1</error>
}