Skip to content

More member reference simplification #9824

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

@slavapestov slavapestov commented May 22, 2017

No description provided.

We don't actually want to open the type; instead, calculate the
substituted member type using substMemberTypeWithBase(), which
will return an unbound generic type if the member is a generic
nominal or type alias, and then it open it with openUnboundGenericType().

This is NFC for now, but I need generic typealiases to come in as
UnboundGenericTypes here in a subsequent patch.
Separate out the code paths for different kinds of Decls
to make the logic here more apparent.
@slavapestov slavapestov force-pushed the more-member-reference-simplification branch from a799671 to d5f6abb Compare May 24, 2017 07:22
@slavapestov slavapestov changed the title [WIP] More member reference simplification More member reference simplification May 24, 2017
@slavapestov slavapestov force-pushed the more-member-reference-simplification branch from d5f6abb to 73976b2 Compare May 24, 2017 20:15
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit 451600c into swiftlang:master May 24, 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