File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36226,10 +36226,9 @@ namespace ts {
36226
36226
if (basePropertyFlags && derivedPropertyFlags) {
36227
36227
// property/accessor is overridden with property/accessor
36228
36228
if (baseDeclarationFlags & ModifierFlags.Abstract && !(base.valueDeclaration && isPropertyDeclaration(base.valueDeclaration) && base.valueDeclaration.initializer)
36229
- || base.valueDeclaration && base.valueDeclaration.parent.kind === SyntaxKind.InterfaceDeclaration
36230
- || getCheckFlags(base) & CheckFlags.Mapped
36229
+ || !base.declarations?.some(decl => isClassLike(decl.parent))
36231
36230
|| derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
36232
- // when the base property is abstract or from an interface or mapped type , base/derived flags don't need to match
36231
+ // when the base property is abstract or not from a class , base/derived flags don't need to match
36233
36232
// same when the derived property is from an assignment
36234
36233
continue;
36235
36234
}
You can’t perform that action at this time.
0 commit comments