Skip to content

[CSDiagnostics] Removes lazy when applying computed property fix-it #24274

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
Apr 25, 2019
Merged

[CSDiagnostics] Removes lazy when applying computed property fix-it #24274

merged 1 commit into from
Apr 25, 2019

Conversation

theblixguy
Copy link
Collaborator

@theblixguy theblixguy commented Apr 25, 2019

Follow up to #23500.

When applying the fix-it, I forgot to check for the possibility of the variable being lazy. This means we would end up emitting another diagnostic complaining about the fact that computed properties cannot be lazy.

This PR fixes the mistake, by removing lazy if present.

@theblixguy
Copy link
Collaborator Author

@xedin

@theblixguy theblixguy changed the title [CSDiagnostics] Removes lazy attributes when applying computed property [CSDiagnostics] Removes lazy when applying computed property fix-it Apr 25, 2019
@xedin
Copy link
Contributor

xedin commented Apr 25, 2019

@swift-ci please smoke test

@theblixguy
Copy link
Collaborator Author

Thank you @xedin, the tests have passed! I'll now cherry-pick this to 5.1 as well.

@xedin xedin merged commit d5fcf1a into swiftlang:master Apr 25, 2019
@xedin
Copy link
Contributor

xedin commented Apr 25, 2019

@theblixguy Please do!

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.

2 participants