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

Require user defined conversion when multicasting to subject with non-matching type #1459

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

glopesdev
Copy link
Member

The implementation of MulticastSubject performed a coercion of the source sequence when the type of values in the sequence did not directly match the type of the subject. This PR makes this behavior more strict: conversions are still allowed, but they have to be supported on type upcasting, interface implementation, or a user-defined explicit conversion between the two types.

This eliminates cases where the type of the source sequence is an interface being multicast to a subject type declared with a different interface.

Fixes #1458

@glopesdev glopesdev added the fix Pull request that fixes an issue label Jul 6, 2023
@glopesdev glopesdev added this to the 2.8 milestone Jul 6, 2023
@glopesdev glopesdev merged commit 4ada1bb into bonsai-rx:main Jul 6, 2023
2 checks passed
@glopesdev glopesdev deleted the issue-1458 branch July 6, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not attempt a blind type conversion when multicasting to subject
1 participant