test262/test/language/expressions/class/syntax/early-errors/grammar-fields-same-line-error.js
2018-10-23 13:51:16 +02:00

35 lines
689 B
JavaScript

// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-fields-same-line-error.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: SyntaxError (class expression)
esid: prod-ClassElement
features: [class-fields-public, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassElement :
MethodDefinition
static MethodDefinition
FieldDefinition ;
;
FieldDefinition :
ClassElementName Initializer _opt
ClassElementName :
PropertyName
PrivateName
---*/
failIfCodeGetsEvaluated();
var C = class {
x y
};