Skip to content

Commit c08e1fc

Browse files
author
Andy Hanson
committed
Remove check for static from checkKindsOfPropertyMemberOrderrides, which is only called on instance side
1 parent c39a683 commit c08e1fc

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
@@ -20678,11 +20678,6 @@ namespace ts {
2067820678
continue;
2067920679
}
2068020680

20681-
if ((baseDeclarationFlags & ModifierFlags.Static) !== (derivedDeclarationFlags & ModifierFlags.Static)) {
20682-
// value of 'static' is not the same for properties - not override, skip it
20683-
continue;
20684-
}
20685-
2068620681
if (isMethodLike(base) && isMethodLike(derived) || base.flags & SymbolFlags.PropertyOrAccessor && derived.flags & SymbolFlags.PropertyOrAccessor) {
2068720682
// method is overridden with method or property/accessor is overridden with property/accessor - correct case
2068820683
continue;

0 commit comments

Comments
 (0)