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
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[?].
Cause.empty
Cause[?]
This can happen because the Cause type is defined as follows:
Cause
type Cause[+E] = ParSeq[Nothing, E]
where ParSeq has both type parameters covariant. But Cause.empty is
ParSeq
case object Empty extends ParSeq[Unit, Nothing]
the first type parameter is Unit which is always Unit > Nothing and this makes Cause.empty > Cause[?]
Unit
Unit > Nothing
Cause.empty > Cause[?]
Can you check if my assumptions are correct?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all! It seems there is a type inconsistency for
Cause.empty
which makes it impossible to pass it as an argument of typeCause[?]
.This can happen because the
Cause
type is defined as follows:where
ParSeq
has both type parameters covariant.But
Cause.empty
isthe first type parameter is
Unit
which is alwaysUnit > Nothing
and this makesCause.empty > Cause[?]
Can you check if my assumptions are correct?
The text was updated successfully, but these errors were encountered: