Skip to content

Fix a couple of issues with the fixit for unused if let bindings. #1963

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

Conversation

jckarter
Copy link
Contributor

  • Fix SR-1112, where the fixit would eat all characters in the RHS expression except for the last one due to improper SourceRange math.
  • Noticed by inspection, an expression undergoing an implicit conversion (such as a load from an optional var) would be judged as requiring parens, when that's really unnecessary.

- Fix SR-1112, where the fixit would eat all characters in the RHS expression except for the last one due to improper SourceRange math.
- Noticed by inspection, an expression undergoing an implicit conversion (such as a load from an optional `var`) would be judged as requiring parens, when that's really unnecessary.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@jrose-apple Does this look reasonable for 2.2?

@jckarter jckarter added this to the Swift 2.2.x milestone Mar 30, 2016
@jrose-apple
Copy link
Contributor

Sure, looks good.

@jrose-apple jrose-apple assigned tkremenek and unassigned jrose-apple Mar 31, 2016
@jckarter
Copy link
Contributor Author

Thanks Jordan. @tkremenek Can we take this for 2.2?

@tkremenek tkremenek merged commit 3b3914d into swiftlang:swift-2.2-branch Mar 31, 2016
@jckarter jckarter deleted the unused-if-let-fixit-2.2 branch March 31, 2016 19:17
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