Skip to content

Display actual expanded source, not expected source #1917

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 3 commits into from
Jul 17, 2023

Conversation

JosephDuffy
Copy link
Contributor

While using this function I was confused by the error message. I think it should include the actual expansion, not what's expected?

I also renamed the variable to try and make it a little clearer and (assuming this is correct) prevent a mistake like this again. This was done in 3c46da3 so can be easily reverted.

@JosephDuffy JosephDuffy requested a review from ahoppen as a code owner July 17, 2023 17:30
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thank you. What a stupid mistake. Could you also open a second PR targeting the release/5.9 branch so that we can also get it fixed for the Swift 5.9 release?

@ahoppen
Copy link
Member

ahoppen commented Jul 17, 2023

@swift-ci Please test

@JosephDuffy
Copy link
Contributor Author

Thank you. What a stupid mistake. Could you also open a second PR targeting the release/5.9 branch so that we can also get it fixed for the Swift 5.9 release?

It was a bit confusing when I saw the message 😅 I'm glad I could fix it 😄

I've opened #1918.

@ahoppen ahoppen merged commit e990c2a into swiftlang:main Jul 17, 2023
@ahoppen
Copy link
Member

ahoppen commented Jul 18, 2023

Thank you @JosephDuffy!

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