You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling the following TypeScript code (note the added !'s) it works just fine:
classC{x!: number|null;y!: null|number;}
It would seem that | null is only allowed at the end. The solution seems easy enough, seems to be somewhere near src/parser.ts (line 530ish) if I had to guess. I am not familiar with this codebase, but I wouldn't mind making a PR this if need be!
Given the following AssemblyScript file:
I get the following errors:
I would expect both lines to work.
Compiling the following TypeScript code (note the added
!
's) it works just fine:It would seem that
| null
is only allowed at the end. The solution seems easy enough, seems to be somewhere near src/parser.ts (line 530ish) if I had to guess. I am not familiar with this codebase, but I wouldn't mind making a PR this if need be!Possible related: #2300
The text was updated successfully, but these errors were encountered: