mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
423 B
TypeScript
21 lines
423 B
TypeScript
//// [tests/cases/compiler/enumPropertyAccessBeforeInitalisation.ts] ////
|
|
|
|
//// [enumPropertyAccessBeforeInitalisation.ts]
|
|
enum E {
|
|
A = A,
|
|
B = E.B,
|
|
C = E["C"],
|
|
D = 1 + D
|
|
}
|
|
|
|
|
|
//// [enumPropertyAccessBeforeInitalisation.js]
|
|
"use strict";
|
|
var E;
|
|
(function (E) {
|
|
E[E["A"] = E.A] = "A";
|
|
E[E["B"] = E.B] = "B";
|
|
E[E["C"] = E["C"]] = "C";
|
|
E[E["D"] = 1 + E.D] = "D";
|
|
})(E || (E = {}));
|