13 lines
251 B
TypeScript
13 lines
251 B
TypeScript
|
// @module: system
|
||
|
|
||
|
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 }
|
||
|
}
|