Skip to content

Commit 2b8f04a

Browse files
committed
do not check inherited properties if interface has one item in heritage list
1 parent 42b188c commit 2b8f04a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ module ts {
23452345
}
23462346

23472347
function checkInheritedPropertiesAreIdentical(type: InterfaceType, typeNode: Node): boolean {
2348-
if (!type.baseTypes.length) {
2348+
if (!type.baseTypes.length || type.baseTypes.length === 1) {
23492349
return true;
23502350
}
23512351

0 commit comments

Comments
 (0)