mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 16:01:30 +00:00
Warn on constant locals not being actual constants; Simplify changetype
This commit is contained in:
@ -18,10 +18,10 @@ export class Array<T> {
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
store<i64>(changetype<this,usize>(this), 0);
|
||||
store<i64>(changetype<usize>(this), 0);
|
||||
Heap.dispose(this.ptr);
|
||||
this.ptr = 0;
|
||||
Heap.dispose(changetype<this,usize>(this));
|
||||
Heap.dispose(changetype<usize>(this));
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
Reference in New Issue
Block a user