wasdk / WebAssemblyStudio

Learn, Teach, Work and Play in the WebAssembly Studio

Home Page:http://webassembly.studio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find name 'i32'.

trusktr opened this issue · comments

Screen Shot 2019-05-25 at 11 17 43 AM

Is it possible to make that work?

I'm running into this too in vscode.

This is because it uses typescript syntax, not assemblyscript syntax. This also applies to i64. This is because assemblyscript files are typescript files and therefor uses .ts extension. A possible fix to this would to check the name to decide if you apply assemblyscript syntax. Not the extension, the name in it's entirety.