Skip to content

Bad formatting adding super() to empty constructor #20073

Closed
@ghost

Description

TypeScript Version: 2.7.0-dev.20171115

Code

class C extends Object {
    constructor() {}
}

Use the quickfix.

Expected behavior:

class C extends Object {
    constructor() {
        super();
    }
}

Actual behavior:

class C extends Object {
    constructor() {super();
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions