-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
@const can be inside an if block as well #1470
Comments
I suppose this is just a matter of bumping the svelte version in the extension. |
We might need some time with this one. It's tricky to implement this into the svelte2tsx transformation for type check. |
I guess this is easier for the new transformation. Should we only implement it for that one, which also will give us more users for it, which should help get more feedback before switching? |
Turns out this already works without modifications for the new transformation, we just need to bump the Svelte version 👍 |
support for const in if blocks in new transformation sveltejs#1470
I have some ideas about how to do this in the old transformation but haven't finished it yet. I can add a PR later. Don't have to wait for it though I also think we can get the new transformation supported first. |
support for const in if blocks in new transformation sveltejs#1470
support for const in if blocks in new transformation #1470
Describe the bug
Since Svelte 3.48
@const
is allowed to be inside an#if
as well, the extension however still complains about this.Reproduction
Expected behaviour
Code above is not marked as an error.
System Info
Which package is the issue about?
Svelte for VS Code
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: