exported const arrow function returning never
: no CFA
#49640
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Bug Report
Unable to type an exported const arrow function as returning
never
and have it participate in control flow analysis (CFA)This is similar to #37998 but notably different in 2 ways:
const
isn't possible, since it's exported🔎 Search Terms
unreachable code, return never, arrow function, CFA
🕗 Version & Regression Information
never
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Unreachable code detected. (7027)
warning🙂 Expected behavior
No warning
The text was updated successfully, but these errors were encountered: