mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-26 05:01:52 +00:00
Initial implementation of 'new'
This doesn't yet call the constructor or use provided parameters and just allocates raw memory
This commit is contained in:
@ -24,6 +24,6 @@ function getZero(): i32 {
|
||||
}
|
||||
|
||||
export enum NonConstant {
|
||||
ZERO = getZero(),
|
||||
ONE
|
||||
ZERO = getZero(), // cannot export a mutable global
|
||||
ONE // cannot export a mutable global (tsc doesn't allow this)
|
||||
}
|
||||
|
Reference in New Issue
Block a user