test262/test/language/block-scope/syntax/redeclaration/var-redeclaration-attempt-a...

23 lines
631 B
JavaScript
Raw Normal View History

2018-12-05 00:29:41 +01:00
// This file was procedurally generated from the following sources:
2018-12-18 18:01:19 +01:00
// - src/declarations/class.case
2018-12-05 00:29:41 +01:00
// - src/declarations/redeclare/block-attempt-to-redeclare-var-declaration-after.template
/*---
description: redeclaration with ClassDeclaration (VariableDeclaration in BlockStatement)
esid: sec-block-static-semantics-early-errors
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Block : { StatementList }
It is a Syntax Error if any element of the LexicallyDeclaredNames of
StatementList also occurs in the VarDeclaredNames of StatementList.
---*/
$DONOTEVALUATE();
2018-12-18 18:01:19 +01:00
{ class f {}; var f; }