Skip to content

Bug: Class rename not updated in new expression #2

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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