Skip to content

Conversation

@LucianoPAlmeida
Copy link
Contributor

Very small diagnostic QOI one
When in a declaration, the fix-it to move the attribute cannot be applied in all cases. So doing extra checks to be more conservative and add a couple of more test for this.

Resolves #65705

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me but @rintaro and @ahoppen should take a look.

@ahoppen
Copy link
Member

ahoppen commented May 9, 2023

@swift-ci Please smoke test

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please smoke test MacOS platform

@LucianoPAlmeida
Copy link
Contributor Author

@swift-ci Please test Windows platform

@LucianoPAlmeida LucianoPAlmeida merged commit 2407256 into swiftlang:main May 10, 2023
@LucianoPAlmeida LucianoPAlmeida deleted the parse-attr-fix-it branch May 10, 2023 02:11
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.

@discardableResult fix-it is wrong when placed on variable declaration

3 participants