-
Notifications
You must be signed in to change notification settings - Fork 695
Open
Labels
Domain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcsbugSomething isn't workingSomething isn't working
Description
Follow up on #1599
Steps to reproduce
const enum A {
B = 1
}
const a = A.B
Behavior with typescript@5.8
The enum is inlined and then the enum itself is not emitted:
const a = 1 /* A.B */;
Behavior with tsgo
The enum is still emitted
var A;
(function (A) {
A[A["B"] = 1] = "B";
})(A || (A = {}));
const a = 1 /* A.B */;
Metadata
Metadata
Assignees
Labels
Domain: EmitRelated to emit, AST printing, Program emit funcsRelated to emit, AST printing, Program emit funcsbugSomething isn't workingSomething isn't working