Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Aug 27, 2025

… into context

  • Explanation:

    Parameter type could be represented by an associated type which is bound to a concrete type by an extension, AbstractFunction::getType() should map it into context before returning because the construct is that it always produces a function type.

  • Resolves: rdar://156955193

  • Main Branch PR: [TypeCheckEffects] AbstractFunction: Parameter types should be mapped… #83687

  • Risk: Low. This is a very narrow fix that only affects situations when parameter type, represented by an associated type, is bound by an extension.

  • Reviewed By: @DougGregor

  • Testing: Added new test-cases to the suite.

(cherry picked from commit 32b97d0) (cherry picked from commit 7f65291)

… into context

Parameter type could be represented by an associated type which is
bound to a concrete type by an extension, `AbstractFunction::getType()`
should map it into context before returning because the construct is
that it always produces a function type.

Resolves: rdar://156955193
(cherry picked from commit 32b97d0)
(cherry picked from commit 7f65291)
@xedin xedin requested a review from a team as a code owner August 27, 2025 17:37
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Aug 27, 2025
@xedin
Copy link
Contributor Author

xedin commented Aug 27, 2025

@swift-ci please test

@xedin xedin merged commit 6e34c90 into swiftlang:release/6.2.1 Aug 28, 2025
5 checks passed
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 6.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants