-
Notifications
You must be signed in to change notification settings - Fork 763
Closed
Description
Reproduction Steps
-
Follow the setup instructions from this blog post to enable
tsgoin VSCode(if you haven't already):
https://devblogs.microsoft.com/typescript/announcing-typescript-native-previews/ -
Create a
.tsfile and add the following code:function doSomethingAwesome() { throw new Error("we messed up"); return []; }
Expected Behavior
The return statement should be reported as unreachable when it follows a throw
Actual Behavior
No unreachable code warning is shown.
Environment
- @typescript/native-preview version:
7.0.0-dev.20250525.1 - Node.js version:
v20.18.2 - OS: Ubuntu 24.04 (if applicable)
Metadata
Metadata
Assignees
Labels
No labels