-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Sema] Look through FunctionConversionExpr when finding @discardableResult callee #60324
[Sema] Look through FunctionConversionExpr when finding @discardableResult callee #60324
Conversation
@swift-ci please test |
MacOS test is failing on OSes that not support concurrency, I think in this case is just fine to run this with |
3a8ce71
to
c5c344c
Compare
@swift-ci please test |
c5c344c
to
f5148a9
Compare
@swift-ci please test |
BTW should I create a 5.7 PR too? Since it’s a regression and it’s a very low risk change. |
@theblixguy Please do open 5.7 PR for this. |
It has been merged on August 4, but the bug is still present in the official Xcode 14 release. May I be doing anything wrong? Edit: Ooops, I see this has already been discussed in #60386. |
Resolves #60276
On 5.7. you get a warning:
When using
@MainActor
the call is wrapped in an implicitFunctionConversionExpr
and we currently do not look through that to find the callee function, so the code falls through and triggers this warning.This is a regression in 5.7, as this warning does not appear in 5.6.