Skip to content

[5.6][Parser] Parse (any P).self #40968

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
Jan 25, 2022

Conversation

hborla
Copy link
Member

@hborla hborla commented Jan 21, 2022

Cherry-pick of #40949

A small bug in the parser preventing the new any P syntax from working in expression context. Parse any P as a type in expression context to support the (any P).self spelling for protocol metatypes.

Resolves: rdar://87908523

@hborla hborla requested a review from a team as a code owner January 21, 2022 23:57
@hborla
Copy link
Member Author

hborla commented Jan 21, 2022

@swift-ci please test

@hborla hborla merged commit 617ef13 into swiftlang:release/5.6 Jan 25, 2022
@hborla hborla deleted the 5.6-parse-any-type-expr branch January 25, 2022 02:04
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