Skip to content

Wrong duplication detection #932

@fmarcia

Description

@fmarcia

Using v2.24.10, when minifying something like:

class myClass {

    #_var;

    get #var() {
        return this.#_var;
    }

    set #var(val) {
        this.#_var = val;
    }
}

The following error occurs:

ERROR: cannot minify test.js: identifier #var has already been declared on line 6 and column 9
    6:     set #var(val) {
               ^

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