Skip to content

Reject member lookups that require bridging metatypes #11446

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 2 commits into from
Aug 18, 2017

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 13, 2017

We can only coerce metatypes covariantly but bridging
always requires an unrelated metatype cast. When
performing member lookup, especially unqualified member
lookup, disregard static members from bridged types entirely.

Resolves SR-5670 and rdar://problem/33830526.

I have a hunch this might break things, stand by.

We can only coerce metatypes covariantly but bridging
always requires an unrelated metatype cast.  When
performing member lookup, especially unqualified member
lookup, disregard static members from bridged types entirely.

See SR-5670 and rdar://problem/33830526
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 13, 2017

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 3c1a6ab

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 3c1a6ab

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 13, 2017

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 13, 2017

@swift-ci please test source compatibility

@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 14, 2017

mapper failure is unrelated

@CodaFi CodaFi requested a review from DougGregor August 14, 2017 04:30
@CodaFi CodaFi changed the title [DO NOT MERGE] Reject member lookups that require bridging metatypes Reject member lookups that require bridging metatypes Aug 14, 2017
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 18, 2017

⛵️

@CodaFi CodaFi merged commit 1a1157d into swiftlang:master Aug 18, 2017
@CodaFi CodaFi deleted the like-a-bridge-over-troubled-decls branch August 18, 2017 08:28
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.

3 participants