Skip to content

A few fixes for preCheckExpression(), and a cleanup #9787

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

slavapestov
Copy link
Contributor

No description provided.

If the left hand side was not a TypeExpr, we would just drop
it on the floor instead of giving up on forming a protocol
composition.
…s in expression context

Generic type specialization is ambiguous with < and > operators.
Extend the disambiguation hack to also consider parsing a generic
parameter list if the > is followed by &.

This fixes parsing types such as 'Base<Int> & P' in expression
context.
@slavapestov slavapestov force-pushed the pre-check-expression-preliminaries branch 2 times, most recently from 531d520 to 54d709a Compare May 19, 2017 22:53
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit f4e2b53 into swiftlang:master May 19, 2017
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.

1 participant