Skip to content

Commit 244db70

Browse files
committed
Incorporating changes to checkClassForDuplicateDeclarations in checker.ts as proposed by @sandersn
1 parent 544d0a4 commit 244db70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15610,7 +15610,7 @@ namespace ts {
1561015610
}
1561115611
}
1561215612
else {
15613-
const isStatic = forEach(member.modifiers, m => m.kind === SyntaxKind.StaticKeyword);
15613+
const isStatic = getModifierFlags(member) & ModifierFlags.Static;
1561415614
const names = isStatic ? staticNames : instanceNames;
1561515615

1561615616
const memberName = member.name && getPropertyNameForPropertyNameNode(member.name);

0 commit comments

Comments
 (0)