mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use getPropertyOfObjectType to get a superclass property (#18113)
This commit is contained in:
1 parent
78524c1b90
commit
7ac4380514
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user