mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
628 B
TypeScript
34 lines
628 B
TypeScript
//// [tests/cases/conformance/externalModules/verbatimModuleSyntaxConstEnumUsage.ts] ////
|
|
|
|
//// [foo.ts]
|
|
export enum Foo {
|
|
a = 1,
|
|
b,
|
|
c,
|
|
}
|
|
|
|
//// [bar.ts]
|
|
import {Foo} from './foo.js';
|
|
|
|
export enum Bar {
|
|
a = Foo.a,
|
|
c = Foo.c,
|
|
e = 5,
|
|
}
|
|
|
|
//// [foo.js]
|
|
export var Foo;
|
|
(function (Foo) {
|
|
Foo[Foo["a"] = 1] = "a";
|
|
Foo[Foo["b"] = 2] = "b";
|
|
Foo[Foo["c"] = 3] = "c";
|
|
})(Foo || (Foo = {}));
|
|
//// [bar.js]
|
|
import { Foo } from './foo.js';
|
|
export var Bar;
|
|
(function (Bar) {
|
|
Bar[Bar["a"] = 1] = "a";
|
|
Bar[Bar["c"] = 3] = "c";
|
|
Bar[Bar["e"] = 5] = "e";
|
|
})(Bar || (Bar = {}));
|