* do not reset current flow after processing finally block if it was unreachable * fix tests
14 lines
172 B
TypeScript
14 lines
172 B
TypeScript
// @noImplicitReturns: true
|
|
|
|
function f() {
|
|
let x = 100;
|
|
try {
|
|
throw "WAT"
|
|
}
|
|
catch (e) {
|
|
|
|
}
|
|
finally {
|
|
return x;
|
|
}
|
|
} |