Skip to content

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

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 21, 2019

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 20, 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

…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
@xedin
Copy link
Contributor Author

xedin commented Jan 20, 2019

This is a regression introduced by 984bec5

@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 source compatibility

@DougGregor
Copy link
Member

@swift-ci please test source compatibility

@xedin xedin merged commit 07b1905 into swiftlang:master Jan 21, 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