2017-05-04 18:29:39 +02:00
|
|
|
// This file was procedurally generated from the following sources:
|
|
|
|
// - src/declarations/redeclare-with-class-declaration.case
|
|
|
|
// - src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template
|
|
|
|
/*---
|
|
|
|
description: redeclaration with ClassDeclaration (AsyncFunctionDeclaration in BlockStatement)
|
|
|
|
esid: sec-block-static-semantics-early-errors
|
2017-05-16 23:32:25 +02:00
|
|
|
features: [async-functions]
|
|
|
|
flags: [generated]
|
2017-05-04 18:29:39 +02:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2017-05-04 18:29:39 +02:00
|
|
|
type: SyntaxError
|
|
|
|
info: |
|
|
|
|
Block : { StatementList }
|
|
|
|
|
|
|
|
It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains
|
|
|
|
any duplicate entries.
|
|
|
|
|
|
|
|
---*/
|
|
|
|
|
|
|
|
|
2017-04-29 22:22:24 +02:00
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
2017-05-04 18:29:39 +02:00
|
|
|
{ async function f() {} class f {}; }
|