Skip to content

[5.5] fix parsing of isolated as an argument label #38488

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
Jul 20, 2021

Conversation

kavon
Copy link
Member

@kavon kavon commented Jul 19, 2021

Rationale: This PR fixes a regression in parsing isolated in the position of an argument label.
Risk: Low
Reward: Medium
Reward Details: Prevents a narrow, unintentional source break.
Original PR: #38422
Issue: rdar://80300022
Code Reviewed By: Konrad Malawski
Testing Details: Regression test is included.

With the introduction of `isolated` as
a type modifier for actor types, the
parsing of a parameter regressed such
that `isolated` was no longer accepted
as an ordinary argument label. This patch
fixes that and adds a little lookahead
utility to clean-up the code that
disambiguates the uses of `isolated`
as either a label or a type modifier.

Resolves rdar://80300022
@kavon kavon requested a review from a team as a code owner July 19, 2021 23:22
@kavon
Copy link
Member Author

kavon commented Jul 19, 2021

@swift-ci please test

@kavon
Copy link
Member Author

kavon commented Jul 19, 2021

@swift-ci please nominate

@kavon kavon added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. r5.5 labels Jul 19, 2021
@kavon kavon merged commit 3f66f26 into swiftlang:release/5.5 Jul 20, 2021
@kavon kavon deleted the 5.5-isolated-argument-label branch July 20, 2021 16:43
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants