Skip to content

new super() in static method does not cause error #63451

@Withered-Flower-0422

Description

@Withered-Flower-0422

🔎 Search Terms

super

🕗 Version & Regression Information

This exists in ts6.0

⏯ Playground Link

No response

💻 Code

class A extends class {} {
    static {
        new super()
    }

    static f() {
        new super()
    }
}

🙁 Actual behavior

no error

🙂 Expected behavior

new super() is invalid and should throw error.

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classesFix AvailableA PR has been opened for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions