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

Fix Type Inference Issue with ZIO.whenM and ZIO.unlessM #3720

Merged
merged 1 commit into from May 29, 2020

Conversation

adamgfraser
Copy link
Contributor

Allows ZIO.whenM and ZIO.unlessM to infer correctly when the effect requires a narrower environment type or has a wider error type than the condition.

@adamgfraser adamgfraser requested a review from jdegoes May 28, 2020 19:44
Copy link
Member

@jdegoes jdegoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most excellent! ❤️

@jdegoes jdegoes merged commit 1970b54 into zio:master May 29, 2020
@adamgfraser adamgfraser deleted the when branch June 10, 2020 18:31
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.

None yet

2 participants