mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Merge pull request #15665 from Microsoft/check_kinds_static
Remove check for static from checkKindsOfPropertyMemberOverrides, which is only called on instance side
This commit is contained in:
commit
35a67977fa
@ -20700,11 +20700,6 @@ namespace ts {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((baseDeclarationFlags & ModifierFlags.Static) !== (derivedDeclarationFlags & ModifierFlags.Static)) {
|
||||
// value of 'static' is not the same for properties - not override, skip it
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isMethodLike(base) && isMethodLike(derived) || base.flags & SymbolFlags.PropertyOrAccessor && derived.flags & SymbolFlags.PropertyOrAccessor) {
|
||||
// method is overridden with method or property/accessor is overridden with property/accessor - correct case
|
||||
continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user