Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Using a read-only var name as a `for` loop var should be an error #4342
While working on #4200 I noticed that if you run this:
You see this:
Rather than this (or an error):
Contrast with this:
I'm retargeting this for fish 3.0 because it is a backward incompatible change that can only be done in a major release. Now obviously anyone currently doing this type of thing is seeing unexpected, incorrect, behavior. Nonetheless, we should only fix it in a major release so let's make sure we do so for 3.0.