mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-26 21:23:53 -06:00
do not check inherited properties if interface has one item in heritage list
This commit is contained in:
parent
42b188cb11
commit
2b8f04af0c
@ -2345,7 +2345,7 @@ module ts {
|
||||
}
|
||||
|
||||
function checkInheritedPropertiesAreIdentical(type: InterfaceType, typeNode: Node): boolean {
|
||||
if (!type.baseTypes.length) {
|
||||
if (!type.baseTypes.length || type.baseTypes.length === 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user