Skip to content

ZNTC1303: Setter must have exactly one formal parameter

Setter must have exactly one formal parameter

Category: Semantic: Class/Other

const o = { set x() {} };

Reproduce in Playground →

See the error message for cause and resolution.