-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Assign to a non-derived private field breaks when a public derived field exists with the same name #15273
Comments
Ugh...will fix this asap |
I am a bit confused with the fix..or at least with its description: "fix: allow mutation of private derived state" I guess it disabled re-assigning, which broke following library: |
Yeah while working on that I noticed there was no check to prevent reassignment of public deriverà and added that too. The fix would be quite straightforward tho |
Describe the bug
Declaring and assigning to a non-derived private field in a class that has a public derived field with the same name breaks with a
Cannot assign to derived state
compile error, this seems to be broken by #15228.This was working/compiling correctly in
5.19.9
Reproduction
https://svelte.dev/playground/hello-world?version=5.19.10#H4sIAAAAAAAAA22Oy4rDMAxFf0WoXSQQMvv0Ad3NJwzUWaS2Qg2ubCyl0xDy70MmDcxiNloczr1XE3L3IGzwk0KI8B1zcFCQ80quxAp7H0iwuU6oY1q8BWC1pS4p1fKkoAu7dUL_cRtZiVWwwaPY7JOeDRu2oROBL5gMA-wcJYETFCWcznBtD4sB8KZ7R9k_ydW3sViN3xBAJh0yrz7AXB6MGjW8XgAbWTQPVmMu-j_t5ZbXu5d62-7XEsOz4ePH-1OsUOml2GgeaG7nH6W6CcAxAQAA
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: