Namespaces

This commit is contained in:
dcodeIO
2017-12-13 23:24:13 +01:00
parent 7d85b0cc7f
commit 99b0fdf7a8
30 changed files with 514 additions and 128 deletions

View File

@ -0,0 +1,13 @@
namespace Outer {
export namespace Inner {
export let aVar: i32;
export function aFunc(): void {}
export enum anEnum { ONE = 1 }
}
}
export function test(): void {
Outer.Inner.aVar;
Outer.Inner.aFunc();
Outer.Inner.anEnum.ONE;
}