Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 10, 2022

Cherry-pick of #58778
Cherry-pick of #58793


Resolves: rdar://92912878
Resolves: rdar://92914226

xedin added 2 commits May 10, 2022 10:27
If there is a call to `init` on a callable type that has a trailing
closure, let's avoid filtering because it's impossible to tell whether
a trailing closure belongs to an `init` call or implicit `.callAsFunction`
that would be attempted after it.

Resolves: rdar://92912878
(cherry picked from commit d81007c)
(cherry picked from commit 4955e51)
…AsFunction`

A call to `.callAsFunction` could be injected after initializer if the type is
callable, `getCalleeLocator` should recognize that situation and return
appropriate locator otherwise if `callAsFunction` has e.g. a result builder
attached to one of its parameters the solver wouldn't be able to find it.

Resolves: rdar://92914226
(cherry picked from commit f7c4ff6)
(cherry picked from commit 557d83c)
@xedin xedin added the r5.7 label May 10, 2022
@xedin xedin requested a review from a team as a code owner May 10, 2022 17:33
@xedin
Copy link
Contributor Author

xedin commented May 10, 2022

@swift-ci please test

@xedin xedin changed the title [5.7-04182022][ConstraintSystem] A couple of callAsFunction fixes #58794 [5.7-04182022][ConstraintSystem] A couple of callAsFunction fixes May 10, 2022
@tkremenek tkremenek merged commit 6356f66 into swiftlang:release/5.7-04182022 May 11, 2022
xedin added a commit that referenced this pull request May 18, 2022
xedin added a commit that referenced this pull request May 18, 2022
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 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 swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants