We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d9362 commit 0647203Copy full SHA for 0647203
src/compiler/checker.ts
@@ -8456,6 +8456,7 @@ namespace ts {
8456
let valueDecl = expressionType.symbol && getDeclarationOfKind(expressionType.symbol, SyntaxKind.ClassDeclaration);
8457
if (valueDecl && valueDecl.flags & NodeFlags.Abstract) {
8458
error(node, Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0, declarationNameToString(valueDecl.name));
8459
+ return resolveErrorCall(node);
8460
}
8461
8462
// TS 1.0 spec: 4.11
0 commit comments