Skip to content

ZNTC0409: Static class field cannot be named 'prototype'

Static class field cannot be named ‘prototype’

Category: Parser: Declaration/Class

class Foo { static prototype = 1; }

Reproduce in Playground →

See the error message for cause and resolution.