Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jul 28, 2020

…t to function type

Cherry-pick of #33145


  • Explanation:

Instead on depending on repr to be a function, let's only check
whether type resolved for @autoclosure points to a function type
because it's allowed for @autoclosure parameters to be to
wrapped into parens or be represented by a typealias.

  • Scope: Limited to declarations which use @autoclosure with parens or typealias.

  • Resolves: rdar://problem/65704049

  • Risk: Very Low

  • Testing: Added regression tests

  • Reviewer: @rintaro

Resolves: rdar://problem/65704049
(cherry picked from commit f2c2aa5)

…t to function type

Instead on depending on repr to be a function, let's only check
whether type resolved for `@autoclosure` points to a function type
because it's allowed for `@autoclosure` parameters to be to
wrapped into parens or be represented by a typealias.

Resolves: rdar://problem/65704049
(cherry picked from commit f2c2aa5)
@xedin xedin added the r5.3 label Jul 28, 2020
@xedin xedin requested a review from a team as a code owner July 28, 2020 19:27
@xedin
Copy link
Contributor Author

xedin commented Jul 28, 2020

@swift-ci please test

@xedin xedin merged commit 50db6e4 into swiftlang:release/5.3 Jul 29, 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