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

Cause.empty type inconsistency #1423

Open
zeal18 opened this issue Nov 20, 2024 · 0 comments
Open

Cause.empty type inconsistency #1423

zeal18 opened this issue Nov 20, 2024 · 0 comments

Comments

@zeal18
Copy link

zeal18 commented Nov 20, 2024

Hi all! It seems there is a type inconsistency for Cause.empty which makes it impossible to pass it as an argument of type Cause[?].

This can happen because the Cause type is defined as follows:

type Cause[+E] = ParSeq[Nothing, E]

where ParSeq has both type parameters covariant.
But Cause.empty is

case object Empty extends ParSeq[Unit, Nothing]

the first type parameter is Unit which is always Unit > Nothing and this makes Cause.empty > Cause[?]

Can you check if my assumptions are correct?

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

No branches or pull requests

1 participant