blob: a8082a4c381a297440911f99caa406d8cea6336a [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-ctor-gen.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class declaration)
esid: prod-ClassElement
features: [generators, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "constructor" and SpecialMethod of MethodDefinition is true.
---*/
$DONOTEVALUATE();
class C {
* constructor() {}
}