Skip to content
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

Expand the tuple "hack" for initializable values to local tuples #76287

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

DougGregor
Copy link
Member

Back off treating local lets of tuple type as "initializable", expanding on the narrow carve-out from #74133. Without this, we would reject local lets of tuple type that are initialized piecemeal.

Fixes rdar://135028163.

Back off treating local lets of tuple type as "initializable", expanding
on the narrow carve-out from swiftlang#74133. Without this, we would reject local
lets of tuple type that are initialized piecemeal.

Fixes rdar://135028163.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

func tupleAsLocal() {
let rotation: (Int, Int)
rotation.0 = 0
rotation.1 = rotation.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish this wasn't a thing... 😭

@DougGregor DougGregor merged commit 9d3c265 into swiftlang:main Sep 5, 2024
3 checks passed
@DougGregor DougGregor deleted the local-let-of-tuple-type branch September 5, 2024 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants