You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
declarefunctionsyncNever(): never;declarefunctionasyncNever(): Promise<never>;asyncfunctionrun(): Promise<void>{if(true){awaitasyncNever();awaitsyncNever();// not marked as unreachablesyncNever();// not marked as unreachable}console.log("foo");// correctly marked as unreachable}
π Actual behavior
Only the last line is marked as unreachable.
π Expected behavior
Expected everything after await asyncNever(); to be marked as unreachable.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
await, never, promise
π Version & Regression Information
The last line starts being marked as unreachable in 3.7.x, but the others aren't in any version
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Only the last line is marked as unreachable.
π Expected behavior
Expected everything after
await asyncNever();
to be marked as unreachable.The text was updated successfully, but these errors were encountered: