-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix: avoid state_referenced_locally warning within type annotations #11638
Conversation
🦋 Changeset detectedLatest commit: 3935277 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
this feels wrong, pretty sure we should be bailing in |
A wrinkle here is that Conclusion: we should retire the visitor merging logic instead of having single cross-functional visitors. I've been meaning to work on that for a while anyway. It'll be a bit noisy though so we should probably try and close as much of the PR queue as possible first |
marking as draft until we can take that on, to reduce noise |
@Rich-Harris I first started off be pulling out |
We're supposed to strip all TS traces at https://github.com/sveltejs/svelte/blob/main/packages/svelte/src/compiler/index.js#L37 - wonder why it doesn't work for this? The real fix probably lies in there. |
Seems to be missing |
I applied a better fix, thanks @dummdidumm |
Fixes #11614