Skip to content

ZNTC0620: 'super' is not allowed outside of a method

‘super’ is not allowed outside of a method

Category: Parser: Expression/Operator

const x = super.foo;

Reproduce in Playground →

See the error message for cause and resolution.