diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index d38111efa1e..d0d9a2b0766 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -25536,7 +25536,7 @@ namespace ts { const property = getPropertyOfType(parentType, nameText); if (property) { markPropertyAsReferenced(property, /*nodeForCheckWriteOnly*/ undefined, /*isThisAccess*/ false); // A destructuring is never a write-only reference. - checkPropertyAccessibility(parent, !!parent.initializer && parent.initializer.kind === SyntaxKind.SuperKeyword, parentType!, property); + checkPropertyAccessibility(parent, !!parent.initializer && parent.initializer.kind === SyntaxKind.SuperKeyword, parentType, property); } } }