Use getPropertyOfObjectType to get a superclass property (#18113)

This commit is contained in:
Andy 2017-08-29 10:23:30 -07:00 committed by GitHub
parent 78524c1b90
commit 7ac4380514

View File

@ -14737,7 +14737,7 @@ namespace ts {
if (!classType) {
return false;
}
const superProperty = getPropertyOfType(classType, prop.escapedName);
const superProperty = getPropertyOfObjectType(classType, prop.escapedName);
if (superProperty && superProperty.valueDeclaration) {
return true;
}