wasdk / WebAssemblyStudio

Learn, Teach, Work and Play in the WebAssembly Studio
http://webassembly.studio
MIT License
2.93k stars 274 forks source link

Cannot find name 'i32'. #416

Open trusktr opened 5 years ago

trusktr commented 5 years ago
Screen Shot 2019-05-25 at 11 17 43 AM

Is it possible to make that work?

adamsoffer commented 5 years ago

I'm running into this too in vscode.

mollthecoder commented 3 years ago

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.