Skip to content

Commit 35a6797

Browse files
author
Andy
authored
Merge pull request #15665 from Microsoft/check_kinds_static
Remove check for static from checkKindsOfPropertyMemberOverrides, which is only called on instance side
2 parents a72a9aa + c08e1fc commit 35a6797

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20700,11 +20700,6 @@ namespace ts {
2070020700
continue;
2070120701
}
2070220702

20703-
if ((baseDeclarationFlags & ModifierFlags.Static) !== (derivedDeclarationFlags & ModifierFlags.Static)) {
20704-
// value of 'static' is not the same for properties - not override, skip it
20705-
continue;
20706-
}
20707-
2070820703
if (isMethodLike(base) && isMethodLike(derived) || base.flags & SymbolFlags.PropertyOrAccessor && derived.flags & SymbolFlags.PropertyOrAccessor) {
2070920704
// method is overridden with method or property/accessor is overridden with property/accessor - correct case
2071020705
continue;

0 commit comments

Comments
 (0)