We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c872c commit 56bbb3cCopy full SHA for 56bbb3c
packages/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js
@@ -60,7 +60,7 @@ export function ClassBody(node, context) {
60
const _key = (key.type === 'PrivateIdentifier' ? '#' : '') + name;
61
const field = fields.get(_key);
62
63
- if (field && (field.length > 1 || (field.length === 1 && field[0] !== 'prop'))) {
+ if (field) {
64
e.duplicate_class_field(node, _key);
65
}
66
0 commit comments