Skip to content

Extra Errors on Invocation of Abstract Constructor #3711

@aozgaa

Description

@aozgaa

Consider the following code:

abstract class A {}
new A(1);

This should report one error, for invoking an abstract constructor. We currently report
error TS2346: Supplied parameters do not match any signature of call target.
error TS2511: Cannot create an instance of the abstract class 'A'.

so we should eliminate the first error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions