28 lines
615 B
TypeScript
28 lines
615 B
TypeScript
//// [systemModuleConstEnums.ts]
|
|
declare function use(a: any);
|
|
const enum TopLevelConstEnum { X }
|
|
|
|
export function foo() {
|
|
use(TopLevelConstEnum.X);
|
|
use(M.NonTopLevelConstEnum.X);
|
|
}
|
|
|
|
module M {
|
|
export const enum NonTopLevelConstEnum { X }
|
|
}
|
|
|
|
//// [systemModuleConstEnums.js]
|
|
System.register([], function (exports_1, context_1) {
|
|
"use strict";
|
|
var __moduleName = context_1 && context_1.id;
|
|
function foo() {
|
|
use(0 /* X */);
|
|
use(0 /* X */);
|
|
}
|
|
exports_1("foo", foo);
|
|
return {
|
|
setters: [],
|
|
execute: function () {
|
|
}
|
|
};
|
|
});
|