Skip to content

Walk into top level pattern binding decls to resolve conditions #6302

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
merged 1 commit into from
Dec 15, 2016

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Dec 15, 2016

Solves a regression @slavapestov identified where Condition Resolution would fail to walk into PatternBindingDecls in -parse-as-library mode.

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

@swift-ci please smoke test and merge.

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

@swift-ci please smoke test.

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

@swift-ci please smoke test Linux platform.

@slavapestov
Copy link
Contributor

In this case though the PBD was inside a method. Same bug?

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

Should be. Sounds like the pattern bindings in the body got delayed and we came around to re-parse them and evaluate the condition later which would have entered walkToDeclPre in the same way.

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

⛵️

@CodaFi CodaFi merged commit ad21e5f into swiftlang:master Dec 15, 2016
@CodaFi CodaFi deleted the pattern-ity branch December 15, 2016 10:51
@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

@slavapestov Can you confirm if this gets AlamoFire building again?

@slavapestov
Copy link
Contributor

@CodaFi Yep it did. Thanks! Do you mind adding a changelog entry for this feature also?

@CodaFi
Copy link
Contributor Author

CodaFi commented Dec 15, 2016

Absolutely, that was next on the list after squashing the nits leftover from this.

jrose-apple added a commit to jrose-apple/swift that referenced this pull request Dec 20, 2016
This reverts commit ad21e5f, reversing
changes made to dbc832b.
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