Rename memory instructions; Rework constant handling

This commit is contained in:
dcodeIO
2018-07-18 23:49:32 +02:00
parent 34e8facfdc
commit a1b75b69b7
170 changed files with 26392 additions and 5185 deletions

View File

@ -2,7 +2,7 @@ namespace Outer {
export namespace Inner {
export var aVar: i32 = 0;
export function aFunc(): i32 { return aVar; }
export enum anEnum { ONE = 1, TWO = 2 }
export const enum anEnum { ONE = 1, TWO = 2 }
}
}
@ -10,7 +10,7 @@ Outer.Inner.aVar;
Outer.Inner.aFunc();
Outer.Inner.anEnum.ONE;
enum Joined {
const enum Joined { // FIXME: tsc doesn't accept this when 'const'?
THREE = 3
}
namespace Joined {