do not check inherited properties if interface has one item in heritage list

This commit is contained in:
Vladimir Matveev 2014-07-16 22:53:53 -07:00
parent 42b188cb11
commit 2b8f04af0c

View File

@ -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;
}