Skip to content

ZNTC1302: Getter must not have any formal parameters

Getter must not have any formal parameters

Category: Semantic: Class/Other

const o = { get x(a) {} };

Reproduce in Playground →

See the error message for cause and resolution.