Bug Report
🔎 Search Terms
locations where its type cannot be determined
🕗 Version & Regression Information
- This changed between versions 4.9 and 5.0
⏯ Playground Link
Playground link with relevant code
💻 Code
let foo;
try {
if (Math.random() > 0.5) {
foo = 1234;
}
} catch {
foo;
}
🙁 Actual behavior
Errors like:
Variable 'foo' implicitly has type 'any' in some locations where its type cannot be determined.(7034)
🙂 Expected behavior
No errors