Skip to content

[runtime] Fix assignment of Any with mismatched types. #9218

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

Conversation

gparker42
Copy link
Contributor

The COW existential implementation sets the existential box's
new value but fails to set the box's new type. Hijinks ensue
when the new value is later used as if it were of the old type.

rdar://31955457

The COW existential implementation sets the existential box's
new value but fails to set the box's new type. Hijinks ensue
when the new value is later used as if it were of the old type.

rdar://31955457
@gparker42
Copy link
Contributor Author

@swift-ci please test

@slavapestov
Copy link
Contributor

Can you add a test?

@aschwaighofer aschwaighofer merged commit 20c5606 into swiftlang:master May 3, 2017
@aschwaighofer
Copy link
Contributor

LGTM. This is blocking a bot. We can add tests later.

@swiftix
Copy link
Contributor

swiftix commented May 3, 2017

Excellent!

@aschwaighofer
Copy link
Contributor

I added tests for the failure here:
#9227
#9224

@gparker42 gparker42 deleted the GrP-PR-D577DF2B-2EE1-4A46-B586-1EC51BFCC3C9 branch October 18, 2017 17:05
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.

4 participants