New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early errors for CaseBlock with a default clause are not defined #187

Closed
nanto opened this Issue Nov 16, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@nanto

nanto commented Nov 16, 2015

[JP22] In 13.12.1, early errors for CaseBlock : { CaseClauses } are defined but those for CaseBlock : { CaseClauses_opt DefaultClause CaseClauses_opt } are not. To cover CaseBlock with a default clause, it can be:

SwitchStatement : switch ( Expression ) CaseBlock

  • It is a Syntax Error if the LexicallyDeclaredNames of CaseBlock contains any duplicate entries.
  • It is a Syntax Error if any element of the LexicallyDeclaredNames of CaseBlock also occurs in the VarDeclaredNames of CaseBlock.

@bterlson bterlson closed this in d623a10 Jan 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment