blob: 648a6de1ea08a6986515bf4e5eb474c32d7ac65a [file] [log] [blame]
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-async-meth-super.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Static Async Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [async-functions, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if HasDirectSuper of MethodDefinition is true.
---*/
$DONOTEVALUATE();
class C extends Function{
static async method() {
super();
}
}