-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Typechecker] Fix an issue with @escaping when used with a generic function #22231
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
cc @xedin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, +1 on the Slava's remark about comment.
I'll look into refactoring @autoclosure handling a bit here, it has the same problem even after these changes since everything is based on representative.
@swift-ci please test |
@swift-ci please test source compatibility |
Build failed |
Build failed |
@xedin Seems like the both tests are failing (on macOS) due to unrelated issues:
|
@shahmishal FYI, build failure was:
|
I also opened a PR to Un-XFAIL GRDB |
@swift-ci please test macOS platform |
Build failed |
It seems like we'll just have to wait to get this resolved. |
@xedin oh, okay! |
@swift-ci Please smoke test macOS |
@swift-ci please test source compatibility |
@swift-ci please test macOS platform |
Build failed |
@xedin @slavapestov Source compat is now passing, but macOS test is still failing due to unrelated reason (in
|
@swift-ci please test macOS platform |
Build failed |
macOS test still failing because of the same unrelated issue 🤔 |
@swift-ci please smoke test |
maybe smoke test is going to pass... |
@xedin smoke test has passed 🎉 😅 |
Looks like the test is failing because of #20103 |
@xedin Ah ok! Since this PR fixed a regression, can this be cherry picked to the 5.0 branch? |
@theblixguy Done - #22278 |
This PR resolves an issue where using a type alias as an argument to @escaping on a generic function inside a protocol would trigger an error diagnostic. This is a regression in Swift 5.0, which is now fixed.
Resolves SR-9760.
Resolves rdar://problem/47550733