pull/15820/head
Rich Harris 4 months ago
parent d6c985960b
commit ffcabe6408

@ -64,9 +64,7 @@ export function ClassBody(node, context) {
key: key.type === 'PrivateIdentifier' ? key : null, key: key.type === 'PrivateIdentifier' ? key : null,
value: /** @type {CallExpression} */ (value) value: /** @type {CallExpression} */ (value)
}; };
}
if (value) {
seen.push(name); seen.push(name);
} }
} }

@ -1,14 +1,14 @@
[ [
{ {
"code": "state_field_duplicate", "code": "state_field_invalid_assignment",
"message": "`count` has already been declared on this class", "message": "Cannot assign to a state field before its declaration",
"start": { "start": {
"line": 4, "line": 3,
"column": 2 "column": 2
}, },
"end": { "end": {
"line": 4, "line": 3,
"column": 24 "column": 17
} }
} }
] ]

Loading…
Cancel
Save