Skip to content

[AST] CaptureListExpr's body is always a ClosureExpr #7326

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
Feb 9, 2017

Conversation

jtbandes
Copy link
Contributor

@jtbandes jtbandes commented Feb 8, 2017

Simple change to CaptureListExpr: Expr *closureBody;ClosureExpr *closureBody;. Reordered the class definitions because it needs to come after the ClosureExpr definition.

@jtbandes
Copy link
Contributor Author

jtbandes commented Feb 8, 2017

@swift-ci please smoke test

@slavapestov
Copy link
Contributor

In this kind of situation a forward declaration also works.

@jtbandes
Copy link
Contributor Author

jtbandes commented Feb 8, 2017

Nope, it didn't, because of SWIFT_FORWARD_SOURCE_LOCS_TO — the actual definition was needed.

@jtbandes jtbandes merged commit f2d426f into swiftlang:master Feb 9, 2017
@jtbandes jtbandes deleted the {} branch February 9, 2017 04:25
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.

3 participants