Skip to content

[SR-533] Improve C-style for fixits by also removing 'var' keyword from loop var decl. #958

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

Merged
merged 1 commit into from
Jan 15, 2016

Conversation

gregomni
Copy link
Contributor

Sorry I missed this part originally! You’d get to the correct code eventually because after switching to a for/in the next compile would suggest replacing the ‘var’ with ‘let’ and then the ‘let’ with nothing, but better to save a couple steps.

@gregomni
Copy link
Contributor Author

I did this in a way that left extra whitespace originally, and @jrose-apple suggested the correct solution. Changed to his suggestion, updated tests, committed, squashed, yada.

lattner added a commit that referenced this pull request Jan 15, 2016
[SR-533] Improve C-style for fixits by also removing 'var' keyword from loop var decl.
@lattner lattner merged commit 03015c2 into swiftlang:master Jan 15, 2016
@lattner
Copy link
Contributor

lattner commented Jan 15, 2016

Cool, thanks! Please email swift-dev to see if Ted approves pulling this into Swift 2.2.

@tkremenek
Copy link
Member

Cherry-picked into swift-2.2-branch: 2ed463a

MaxDesiatov added a commit to MaxDesiatov/swift that referenced this pull request May 12, 2020
…kflow

Remove unused step from main.yml workflow
@gregomni gregomni deleted the sr-533 branch August 18, 2020 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants