From 7ac43805149e779db04c4bf495a061cfb5b8ebee Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 29 Aug 2017 10:23:30 -0700 Subject: [PATCH] Use getPropertyOfObjectType to get a superclass property (#18113) --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4101d093e2f..6373665b1ec 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -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; }