Skip to content

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