blob: 95e339d6dc9372443a9afa5ae9fc38b77094780b [file] [log] [blame] [edit]
// Copyright (C) 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/elements/nested-literal-name-
name: literal ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();
class C {
x = () => /*{ initializer }*/;
}