Skip to content

Declaration emit for private identifiers in class expressions is wrong #36548

Open
@sandersn

Description

@sandersn

Code

const O = class { #g }

Expected behavior:

declare const O = class { #private }

Actual behavior:

declare const O: {
    new (): {
        "__#1@#g": any;
    };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do thisRescheduledThis issue was previously scheduled to an earlier milestone

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions