Skip to content

[6.0] Include error type when considering whether a SILFunctionType needs its substitutions. #74527

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Jun 18, 2024

Explanation: Fixes a compiler crash when a closure literal with a concrete error type is used in the context of a function that's generic over the closure's error parameter.
Scope: Bug fix.
Issue: rdar://128205122
Original PR: #74525
Risk: Low. A small bug fix that should only affect new code using typed throws.
Testing: Swift CI, test case from bug report
Reviewer: @slavapestov, @rjmccall

@jckarter jckarter requested a review from a team as a code owner June 18, 2024 20:10
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

LGTM

@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit 81bda12 into swiftlang:release/6.0 Jun 21, 2024
5 checks passed
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.

3 participants