We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.10.16
Use Stream.partition with some refinement (_: A | B): _ is A. Compare the types of the two returned streams. See https://effect.website/play#e46514f8e5a0
Stream.partition
(_: A | B): _ is A
Left stream should be the type of the refinement, i.e. A, right stream should be the exclusion, i.e. B.
A
B
Type signature is flipped, left is B, right is A.
Runtime behavior seems to match the documentation and seems to be correct.
Issue was reported before in discord in https://discord.com/channels/795981131316985866/885826410948722718/1152155890565267476 and in https://discord.com/channels/795981131316985866/885826410948722718/1246063941902274602.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Effect is running?
3.10.16
What steps can reproduce the bug?
Use
Stream.partition
with some refinement(_: A | B): _ is A
. Compare the types of the two returned streams.See https://effect.website/play#e46514f8e5a0
What is the expected behavior?
Left stream should be the type of the refinement, i.e.
A
, right stream should be the exclusion, i.e.B
.What do you see instead?
Type signature is flipped, left is
B
, right isA
.Additional information
Runtime behavior seems to match the documentation and seems to be correct.
Issue was reported before in discord in https://discord.com/channels/795981131316985866/885826410948722718/1152155890565267476 and in https://discord.com/channels/795981131316985866/885826410948722718/1246063941902274602.
The text was updated successfully, but these errors were encountered: