-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Parameters created from tuple are treated as mutable instead of immutable, unless written as "...args" #53255
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
Labels
Milestone
Comments
8 tasks
Followup is here: #53398 |
Merged
Fix has been reverted. |
will there ever be a fix for this issue or has it been abandoned? |
No, I just haven't come up with a fix for it, and have been working on other issues. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
π Search Terms
const array tuple parameter spread
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
Obviously they're not assignable, but why did we come up with
[a: 1 | 2, b: "1" | "2"]
and notreadonly [a: 1 | 2, b: "1" | "2"]
?π Expected behavior
No error, as though it had been expanded separately.
See also: DefinitelyTyped/DefinitelyTyped#64739
The text was updated successfully, but these errors were encountered: