Skip to content

ZNTC0406: Class constructor cannot be a getter, setter, generator, or async

Class constructor cannot be a getter, setter, generator, or async

Category: Parser: Declaration/Class

class Foo { async constructor() {} }

Reproduce in Playground →

See the error message for cause and resolution.