mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-03 08:31:53 +00:00
Fix enum initialization (#545)
This commit is contained in:
@ -2266,6 +2266,9 @@ export class EnumValue extends VariableLikeElement {
|
||||
this.setType(Type.i32);
|
||||
}
|
||||
|
||||
/** Whether this enum value is immutable. */
|
||||
isImmutable: bool = false;
|
||||
|
||||
/** Gets the associated value node. */
|
||||
get valueNode(): Expression | null {
|
||||
return (<EnumValueDeclaration>this.declaration).value;
|
||||
|
Reference in New Issue
Block a user