File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ namespace ts {
703
703
function isNarrowableReference ( expr : Expression ) : boolean {
704
704
return expr . kind === SyntaxKind . Identifier ||
705
705
expr . kind === SyntaxKind . ThisKeyword ||
706
+ expr . kind === SyntaxKind . SuperKeyword ||
706
707
expr . kind === SyntaxKind . PropertyAccessExpression && isNarrowableReference ( ( < PropertyAccessExpression > expr ) . expression ) ;
707
708
}
708
709
Original file line number Diff line number Diff line change @@ -10347,6 +10347,8 @@ namespace ts {
10347
10347
getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(<Identifier>source)) === getSymbolOfNode(target);
10348
10348
case SyntaxKind.ThisKeyword:
10349
10349
return target.kind === SyntaxKind.ThisKeyword;
10350
+ case SyntaxKind.SuperKeyword:
10351
+ return target.kind === SyntaxKind.SuperKeyword;
10350
10352
case SyntaxKind.PropertyAccessExpression:
10351
10353
return target.kind === SyntaxKind.PropertyAccessExpression &&
10352
10354
(<PropertyAccessExpression>source).name.text === (<PropertyAccessExpression>target).name.text &&
@@ -11483,6 +11485,7 @@ namespace ts {
11483
11485
switch (expr.kind) {
11484
11486
case SyntaxKind.Identifier:
11485
11487
case SyntaxKind.ThisKeyword:
11488
+ case SyntaxKind.SuperKeyword:
11486
11489
case SyntaxKind.PropertyAccessExpression:
11487
11490
return narrowTypeByTruthiness(type, expr, assumeTrue);
11488
11491
case SyntaxKind.CallExpression:
You can’t perform that action at this time.
0 commit comments