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 267f247 commit 179d53eCopy full SHA for 179d53e
packages/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js
@@ -76,7 +76,7 @@ export function ClassBody(node, context) {
76
fields.set(key, ['prop']);
77
continue;
78
}
79
- field.push('prop');
+ e.duplicate_class_field(child, key);
80
81
82
if (child.type === 'MethodDefinition') {
@@ -89,6 +89,9 @@ export function ClassBody(node, context) {
89
fields.set(key, [child.kind]);
90
91
92
+ if (field.includes(child.kind) || field.includes('prop')) {
93
94
+ }
95
if (child.kind === 'get') {
96
if (field.length === 1 && field[0] === 'set') {
97
field.push('get');
0 commit comments