mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 00:11:28 +00:00
Rename memory instructions; Rework constant handling
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user