Skip to content

[5.0][Sema] Fix resolveDependentMemberType to properly handle nested typ… #22021

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
Jan 22, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 21, 2019

…es found in enum/struct/class

Currently if member has been found through same-type constraint
it would only be properly handled when it comes from a class type,
because that's the only time when base type gets replaced with
"concrete" type from equivalence class, but nested types could also
come from structs, enums and sometimes protocols (e.g. typealias)
which resolveDependentMemberType has to handle.

Resolves: rdar://problem/47334176
(cherry picked from commit 33cff97)

…es found in enum/struct/class

Currently if member has been found through same-type constraint
it would only be properly handled when it comes from a class type,
because that's the only time when base type gets replaced with
"concrete" type from equivalence class, but nested types could also
come from structs, enums and sometimes protocols (e.g. typealias)
which `resolveDependentMemberType` has to handle.

Resolves: rdar://problem/47334176
(cherry picked from commit 33cff97)
@xedin xedin requested a review from AnnaZaks January 21, 2019 08:45
@xedin xedin requested a review from a team as a code owner January 21, 2019 08:45
@xedin
Copy link
Contributor Author

xedin commented Jan 21, 2019

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jan 21, 2019

@swift-ci please test source compatibility

@xedin
Copy link
Contributor Author

xedin commented Jan 21, 2019

@AnnaZaks @DougGregor reviewed original PR for master branch.

@AnnaZaks AnnaZaks merged commit e55cfb2 into swiftlang:swift-5.0-branch Jan 22, 2019
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