Retain data flow info after try-finally

This commit is contained in:
Alexander Udalov
2012-11-13 21:17:57 +04:00
parent d629fe2d91
commit ef3e38071c
3 changed files with 31 additions and 3 deletions
@@ -0,0 +1,19 @@
fun tryFinally(x: Int?) {
try {
} finally {
x!!
}
x : Int
}
fun tryCatchFinally(x: Int?) {
try {
x!!
} catch (e: Exception) {
x!!
} finally {
<!TYPE_MISMATCH!>x<!> : Int
x!!
}
x : Int
}