Skip to content

Commit 3ed5d0a

Browse files
Just use !isHeritageClause(node.parent).
1 parent 1394d80 commit 3ed5d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ namespace ts {
20172017
case SyntaxKind.MetaProperty:
20182018
return true;
20192019
case SyntaxKind.ExpressionWithTypeArguments:
2020-
return !isPartOfTypeNode(node.parent);
2020+
return !isHeritageClause(node.parent);
20212021
case SyntaxKind.QualifiedName:
20222022
while (node.parent.kind === SyntaxKind.QualifiedName) {
20232023
node = node.parent;

0 commit comments

Comments
 (0)