Warn on constant locals not being actual constants; Simplify changetype

This commit is contained in:
dcodeIO
2017-12-28 17:16:37 +01:00
parent 2f12c7fa50
commit 4207f6460d
14 changed files with 90 additions and 74 deletions

View File

@ -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