TypeScript/tests/cases/compiler/unreachableFlowAfterFinally.ts
Vladimir Matveev 4800464ed6 do not reset current flow after processing finally block if it was unreachable (#11310)
* do not reset current flow after processing finally block if it was unreachable

* fix tests
2016-10-03 11:03:28 -07:00

14 lines
172 B
TypeScript

// @noImplicitReturns: true
function f() {
let x = 100;
try {
throw "WAT"
}
catch (e) {
}
finally {
return x;
}
}