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
This no more compiles but fails with "Covariant type occurs in invariant position":
import language.higherKinds trait ELI[N] trait Companion[+CC[N, E[X] <: ELI[X]]] { protected type Coll = CC[_,Nothing] }
Adding @uncheckedVariance doesn't help either.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8225?orig=1 Reporter: Sonnenschein (sonnenschein) Affected Versions: 2.11.0-M8 See #6566
Sorry, something went wrong.
@retronym said: You have to make it protected[this], after the fix for #6566.
protected[this]
import language.higherKinds trait ELI[N] trait Companion[+CC[N, E[X] <: ELI[X]]] { protected[this] type Coll = CC[_,Nothing] }
@adriaanm said: See also #7093 on an important note regarding protected[this].
adriaanm
No branches or pull requests
This no more compiles but fails with "Covariant type occurs in invariant position":
Adding @uncheckedVariance doesn't help either.
The text was updated successfully, but these errors were encountered: