Make sure constant locals are inlined, see #6

This commit is contained in:
dcodeIO
2017-12-28 15:17:35 +01:00
parent 2ed3c22031
commit 8d894d0827
7 changed files with 251 additions and 101 deletions

View File

@ -0,0 +1,8 @@
const constantGlobal = 1;
export function test(): i32 {
const constantLocal = 2;
return constantGlobal + constantLocal;
}
assert(test() == 3);