mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
304 B
TypeScript
20 lines
304 B
TypeScript
//// [tests/cases/compiler/enumWithExport.ts] ////
|
|
|
|
//// [enumWithExport.ts]
|
|
namespace x {
|
|
export let y = 123
|
|
}
|
|
enum x {
|
|
z = y
|
|
}
|
|
|
|
//// [enumWithExport.js]
|
|
"use strict";
|
|
var x;
|
|
(function (x) {
|
|
x.y = 123;
|
|
})(x || (x = {}));
|
|
(function (x) {
|
|
x[x["z"] = y] = "z";
|
|
})(x || (x = {}));
|