Skip to content

Commit 0647203

Browse files
author
Arthur Ozga
committed
Prevent extra checks once abstract new-call detected
1 parent 77d9362 commit 0647203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8456,6 +8456,7 @@ namespace ts {
84568456
let valueDecl = expressionType.symbol && getDeclarationOfKind(expressionType.symbol, SyntaxKind.ClassDeclaration);
84578457
if (valueDecl && valueDecl.flags & NodeFlags.Abstract) {
84588458
error(node, Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0, declarationNameToString(valueDecl.name));
8459+
return resolveErrorCall(node);
84598460
}
84608461

84618462
// TS 1.0 spec: 4.11

0 commit comments

Comments
 (0)