Skip to content
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

Sema: Fix ConstraintSystem::getTypeOfMemberReference() for protocol typealiases #18465

Merged

Conversation

@slavapestov
Copy link
Member Author

@swift-ci Please smoke test


typealias Amb = Amb1 & Amb2

let _: Int.Type = Amb.T.self
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AnthonyLatsis Note that this case should always be accepted -- I'm disambiguating the return type of the member access. However, I'm surprised that without the type constraint, Amb.T just picks a random result from the overload set. Maybe @xedin has ideas.

@slavapestov slavapestov force-pushed the protocol-typealias-bug-from-forums branch from 2f22be2 to 8fc7f7e Compare August 2, 2018 06:02
@slavapestov
Copy link
Member Author

@swift-ci Please smoke test

@slavapestov slavapestov merged commit f1e9a04 into apple:master Aug 2, 2018
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.

None yet

1 participant