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 c9e301f commit 945e65fCopy full SHA for 945e65f
src/compiler/checker.ts
@@ -3125,9 +3125,8 @@ namespace ts {
3125
for (const prop of getPropertiesOfType(source)) {
3126
const inNamesToRemove = prop.name in names;
3127
const isPrivate = getDeclarationModifierFlagsFromSymbol(prop) & (ModifierFlags.Private | ModifierFlags.Protected);
3128
- const isMethod = prop.flags & SymbolFlags.Method;
3129
const isSetOnlyAccessor = prop.flags & SymbolFlags.SetAccessor && !(prop.flags & SymbolFlags.GetAccessor);
3130
- if (!inNamesToRemove && !isPrivate && !isMethod && !isSetOnlyAccessor) {
+ if (!inNamesToRemove && !isPrivate && !isClassMethod(prop) && !isSetOnlyAccessor) {
3131
members[prop.name] = prop;
3132
}
3133
0 commit comments