Visit super arguments even when no signature exists (#24591)

This commit is contained in:
Wesley Wigham
2018-06-01 14:14:56 -07:00
committed by GitHub
parent f8503f2632
commit 1b6d9229f2
6 changed files with 92 additions and 0 deletions

View File

@@ -18678,6 +18678,7 @@ namespace ts {
if (node.expression.kind === SyntaxKind.SuperKeyword) {
const superType = checkSuperExpression(node.expression);
if (isTypeAny(superType)) {
forEach(node.arguments, checkExpression); // Still visit arguments so they get marked for visibility, etc
return anySignature;
}
if (superType !== errorType) {