blob: 0b8860ce36e870205b1d8918a456c6d3542353d5 [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-privatenames-same-line-error.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: SyntaxError (class declaration)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassElement :
MethodDefinition
static MethodDefinition
FieldDefinition ;
;
FieldDefinition :
ClassElementName Initializer _opt
ClassElementName :
PropertyName
PrivateName
PrivateName ::
# IdentifierName
---*/
$DONOTEVALUATE();
class C {
#x #y
}