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

VoidError - can be applied to any yield type #4388

Closed
wants to merge 1 commit into from
Closed

VoidError - can be applied to any yield type #4388

wants to merge 1 commit into from

Conversation

diesalbla
Copy link
Contributor

No description provided.

def voidError(fu: F[Unit]): F[Unit] = handleError(fu)(Function.const(()))
def voidError(fu: F[_]): F[Unit] = handleError(fu)(Function.const(()))
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this is correct. You can get runtime cast errors. See a similar situation in:

Copy link
Contributor

Choose a reason for hiding this comment

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

Btw, there was a discussion about it in the initial PR:
#4324 (comment)

@diesalbla diesalbla closed this Feb 2, 2023
@diesalbla diesalbla deleted the patch-1 branch June 20, 2023 14:17
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

3 participants