Microsoft/TypeScript

Declaration emit for private identifiers in class expressions is wrong

Open

#36,548 opened on Jan 31, 2020

View on GitHub
 (3 comments) (2 reactions) (0 assignees)TypeScript (48,455 stars) (6,726 forks)batch import
BugDomain: Declaration EmitHelp WantedRescheduled

Description

Code

const O = class { #g }

Expected behavior:

declare const O = class { #private }

Actual behavior:

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

Contributor guide