Skip to content

Commit d878f80

Browse files
author
Arthur Ozga
committed
more rigorous implements-clause check
1 parent 207b7b0 commit d878f80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/utilities.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3126,8 +3126,9 @@ namespace ts {
31263126
return tryGetClassExtendingExpressionWithTypeArguments(node) !== undefined;
31273127
}
31283128

3129-
export function isExpressionWithTypeArgumentsInClassImplementsClause(node: Node): boolean {
3129+
export function isExpressionWithTypeArgumentsInClassImplementsClause(node: Node): node is ExpressionWithTypeArguments {
31303130
return node.kind === SyntaxKind.ExpressionWithTypeArguments
3131+
&& isEntityNameExpression((node as ExpressionWithTypeArguments).expression)
31313132
&& node.parent
31323133
&& (<HeritageClause>node.parent).token === SyntaxKind.ImplementsKeyword
31333134
&& node.parent.parent

0 commit comments

Comments
 (0)