Skip to content

Bug: Class rename not updated in new expression #2

@r1pu5u

Description

@r1pu5u

When a class name is renamed, the constructor call is not updated.

Input

class c {}
const f = new c();

Output

class wzpnig {}
const jnciqk = new c; // wrong

Expected

class wzpnig {}
const jnciqk = new wzpnig();

The class declaration is renamed, but new c(...) still uses the old name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions