Skip to content

add tracking of pack environments for pack elements to Constraint System #67164

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

Merged

Conversation

sophiapoirier
Copy link
Contributor

This refactor is a prerequisite to my next PR that will address an abstract tuple bug.

@sophiapoirier sophiapoirier requested a review from slavapestov July 6, 2023 18:22
@sophiapoirier sophiapoirier force-pushed the pack-environments-for-elements branch from 92e6608 to 7588aae Compare July 6, 2023 18:39
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM! The comment I left shouldn't block you from merging.

packType = CS.getType(elementExpr->getPackRefExpr());
} else if (auto *elementType = getAsTypeRepr<PackElementTypeRepr>(pack)) {
if (isExpr<PackElementExpr>(pack)) {
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Could you please leave a comment here explaining why we skip over pack elements and where the connection between this pack expansion and pack element is established now to make it easier in the future to figure out what is going on here?

@sophiapoirier sophiapoirier force-pushed the pack-environments-for-elements branch from b6d98a3 to d3000fa Compare July 6, 2023 20:39
@sophiapoirier sophiapoirier force-pushed the pack-environments-for-elements branch from c8908f9 to 63e30b5 Compare July 6, 2023 20:44
@sophiapoirier
Copy link
Contributor Author

@swift-ci please test

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.

Using value pack in closure crashes compiler
2 participants