Skip to content

Fix for missing conformance with id-as-Any bridging #4298

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

No description provided.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test os x

@slavapestov slavapestov force-pushed the fix-for-missing-conformance branch from 77327cc to fe228d9 Compare August 15, 2016 08:47
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test os x

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test os x

@tkremenek
Copy link
Member

@swift-ci test os x

@tkremenek
Copy link
Member

@swift-ci test os x platform

…ry when a nil literal is bridged

When bridging values via the ObjectiveCBridgeable protocol,
SILGen has to look up conformances directly, behind the
type checker's back.

To make sure the ObjectiveCBridgeable conformance is forced,
Sema calls useObjectiveCBridgeableConformances() in the right
places.

However, another conformance we may also need when bridging
is the Hashable conformance for a Set or Dictionary's key type.

Make sure we force these too, because otherwise when bridging
a nil literal nothing needs them in Sema.

Fixes <rdar://problem/27470505>.
@slavapestov slavapestov force-pushed the fix-for-missing-conformance branch from fe228d9 to 56e2e13 Compare August 15, 2016 21:30
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test os x

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test os x

@slavapestov slavapestov merged commit 714075a into swiftlang:master Aug 16, 2016
@slavapestov slavapestov deleted the fix-for-missing-conformance branch August 19, 2016 05:21
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