Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 6, 2020

Cherry-pick of #32724


  • Explanation:

To preserve subtype relationship between element types of a collection
passed as an argument to a parameter represented by another collection
type let's extend opening of the collection types to be done for arguments
to @autoclosure parameters as well because implicit closure is transparent
to the caller.

  • Scope: Limited to @autoclosure arguments represented by a collection type.

  • Resolves: rdar://problem/65088975

  • Risk: Very Low

  • Testing: Added regression tests

  • Reviewer: @DougGregor, @hborla

Resolves: SR-13135
Resolves: rdar://problem/65088975
(cherry picked from commit 739ba4b)

…ument

To preserve subtype relationship between element types of a collection
passed as an argument to a parameter represented by another collection
type let's extend opening of the collection types to be done for arguments
to @autoclosure parameters as well because implicit closure is transparent
to the caller.

Resolves: [SR-13135](https://bugs.swift.org/browse/SR-13135)
Resolves: rdar://problem/65088975
(cherry picked from commit 739ba4b)
@xedin xedin requested a review from a team as a code owner July 6, 2020 21:47
@xedin xedin added the r5.3 label Jul 6, 2020
@xedin
Copy link
Contributor Author

xedin commented Jul 6, 2020

@swift-ci please test

@xedin xedin merged commit c972b83 into swiftlang:release/5.3 Jul 7, 2020
@AnthonyLatsis AnthonyLatsis added swift 5.3 🍒 release cherry pick Flag: Release branch cherry picks labels Jan 8, 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.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants