Fixed the typechecking for try..catch

This commit is contained in:
Andrey Breslav
2011-05-03 12:25:54 +04:00
parent 45da711de3
commit e46792a80e
4 changed files with 54 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
fun test() {
~x~val x = 1
try {
~y~val y = `x`x
}
catch (~e1~e : Exception) {
val z = `e1`e
val zz = `!`y
val zzz = `x`x
}
catch (~e2~e : Exception) {
val z = `e2`e
val zz = `!`y
val zzz = `x`x
}
finally {
val z = `!`e
val zz = `!`y
val zzz = `x`x
}
}