Const enums shouldn't be emitted after inlining
Closed this issue · 0 comments
mjbvz commented
Follow up on #1599
Steps to reproduce
const enum A {
B = 1
}
const a = A.BBehavior 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 */;