-
-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser error, i think #2780
Comments
I'm not sure if AS supports |
yes. |
The problem is not even that, the problem is an error in the parser. Unfortunately, I didn’t check the typeof, but I saw that this have checks in tests https://github.com/AssemblyScript/assemblyscript/blob/main/tests/compiler/typeof.ts |
I have token a look about this issue. It is because parser handle |
I suspect that |
The error you reported indicates the parser expected code like this, which is seen as Edit: @HerrCai0907 beat me to it by 6 minutes and I didn't notice. |
Interesting thing is TS also have similar problem. |
Semantic analysis isn't necessary. TypeScript eagerly parses generics (which makes sense; practically no one would write
You actually brought up what I typed above as I was typing it. 😆 |
Bug description
I understand that I am doing the wrong things in the assembly script, but it seems to me that this error should not look like what is shown below. Hope this helps improve Assemblyscript.
Steps to reproduce
run
AssemblyScript version
v0.27.15
The text was updated successfully, but these errors were encountered: