Skip to content

Conversation

@Renegade334
Copy link
Contributor

As per tc39/ecma262@8e5d501, [await] using VariableStatements cannot be immediate children of case/default clauses; they must be contained within a block.

Resolves #62708.

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Nov 2, 2025
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 2, 2025
@Renegade334 Renegade334 changed the title Disallow [await] using declarations under case/default clauses Disallow [await] using statements under case/default clauses Nov 2, 2025
npm go brrrrr
@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Backlog Bug PRs that fix a backlog bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

Should reject using / await using in a switch case / default clause

2 participants