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
{{ message }}
Repository navigation
typescript: impact of an enum member lists switches over other enums that share the member name as [resolved] #1589
impact <Enum>.<MEMBER> on a TypeScript enum member lists, as [resolved] "switches over the enum" users, functions whose switch is over a different enum that happens to declare a member of the same name.
Actual: both ownerLabel and receiverLabel are listed as [resolved] … switches over the enum (1 of its constants named). On a multi-language parser codebase with ~20 *Kind enums, impact of one enum member returned 29 [resolved] "switches over the enum" rows, and at least two I checked by reading (a switch over a binding-kind enum, a switch over a receiver-kind enum) never mention the target enum.
Control
A switch over the target enum itself must stay [resolved].
Consolidated into #1585, which tracks this issue together with related ones about TypeScript typing and entry points: callbacks, object-literal functions, enums, JSX and package exports. The description and reproduction here still apply, and the fix for the group covers them.
Activity
swapnilpaliwal-sd commentedon Sep 29, 2026
Consolidated into #1585, which tracks this issue together with related ones about TypeScript typing and entry points: callbacks, object-literal functions, enums, JSX and package exports. The description and reproduction here still apply, and the fix for the group covers them.