File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -703,6 +703,7 @@ namespace ts {
703703 function isNarrowableReference ( expr : Expression ) : boolean {
704704 return expr . kind === SyntaxKind . Identifier ||
705705 expr . kind === SyntaxKind . ThisKeyword ||
706+ expr . kind === SyntaxKind . SuperKeyword ||
706707 expr . kind === SyntaxKind . PropertyAccessExpression && isNarrowableReference ( ( < PropertyAccessExpression > expr ) . expression ) ;
707708 }
708709
Original file line number Diff line number Diff line change @@ -10347,6 +10347,8 @@ namespace ts {
1034710347 getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(<Identifier>source)) === getSymbolOfNode(target);
1034810348 case SyntaxKind.ThisKeyword:
1034910349 return target.kind === SyntaxKind.ThisKeyword;
10350+ case SyntaxKind.SuperKeyword:
10351+ return target.kind === SyntaxKind.SuperKeyword;
1035010352 case SyntaxKind.PropertyAccessExpression:
1035110353 return target.kind === SyntaxKind.PropertyAccessExpression &&
1035210354 (<PropertyAccessExpression>source).name.text === (<PropertyAccessExpression>target).name.text &&
@@ -11483,6 +11485,7 @@ namespace ts {
1148311485 switch (expr.kind) {
1148411486 case SyntaxKind.Identifier:
1148511487 case SyntaxKind.ThisKeyword:
11488+ case SyntaxKind.SuperKeyword:
1148611489 case SyntaxKind.PropertyAccessExpression:
1148711490 return narrowTypeByTruthiness(type, expr, assumeTrue);
1148811491 case SyntaxKind.CallExpression:
You can’t perform that action at this time.
0 commit comments