Skip to content

Can't parse foo! += 1 #64

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

Closed
paoloricciuti opened this issue Sep 27, 2024 · 1 comment
Closed

Can't parse foo! += 1 #64

paoloricciuti opened this issue Sep 27, 2024 · 1 comment

Comments

@paoloricciuti
Copy link

If i try to parse the expression in the title i get an error despite it being a valid typescript syntax.

Syntax:

let foo: number | null  = 1;
foo! += 1;

Error:

Error: Assigning to rvalue (3:0)

Repo:
link

Related issue:

sveltejs/svelte#13409

We are using acorn-typescript in svelte to parse typescript scripts and this bug was reported.

@dummdidumm
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants