Skip to content

[5.9][SE-0393] Require the repeat keyword for generic requirement expansions #65145

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 14, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 13, 2023

Cherry-pick of #65134

  • Explanation: The review of SE-0393 surfaced a potential ambiguity between parameter pack requirement expansions and requirements on a single pack element on a local function inside of a pack expansion expression. The proposal is revised in [SE-0393] Incorporate revisions from review discussion. swift-evolution#2004 to require the repeat keyword for generic requirement expansions to resolve the ambiguity.

  • Scope: Only affects parameter packs.

  • Risk: Low.

  • Testing: Updated existing parameter pack tests and added new test for error messages for each T in requirements outside of an expansion.

@hborla hborla requested a review from a team as a code owner April 13, 2023 15:38
@hborla
Copy link
Member Author

hborla commented Apr 13, 2023

@swift-ci please test

@hborla hborla merged commit e61b3ab into swiftlang:release/5.9 Apr 14, 2023
@hborla hborla deleted the 5.9-parameter-pack-revision branch April 14, 2023 14:44
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants