Skip to content

ZNTC0621: 'super()' is only allowed in a class constructor

‘super()’ is only allowed in a class constructor

Category: Parser: Expression/Operator

class C { f() { super(); } }

Reproduce in Playground →

See the error message for cause and resolution.