You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached file compiles fine with 2.11.8 but results in 4 errors using 2.12.0 and 2.12.1:
[error] /home/golly/crap/bug212/Blah.scala:8: covariant type Id occurs in invariant position in supertype Blah.X[Blah.WithIdTypeAlias.Id] of object Y1
[error] object Y1 extends X[Id] // FAILURE
[error] ^
[error] /home/golly/crap/bug212/Blah.scala:9: covariant type Id occurs in invariant position in type => Blah.X[Blah.WithIdTypeAlias.Id] of value Y2
[error] val Y2 = new X[Id] // FAILURE
[error] ^
[error] /home/golly/crap/bug212/Blah.scala:10: covariant type Id occurs in invariant position in type => Blah.X[Blah.WithIdTypeAlias.Id] of method Y3
[error] def Y3 = new X[Id] // FAILURE
[error] ^
[error] /home/golly/crap/bug212/Blah.scala:13: covariant type Id occurs in invariant position in type => Blah.X[Blah.WithIdTypeAlias.Id] of method EX
[error] def EX: X[Id] = new X[Id] // FAILURE
[error] ^
[error] four errors found
WithIdClass is a copy-paste of WithIdTypeAlias with only the Id definition changed. When Id is a class and not a type alias, it compiles without error in 2.12.x.
The text was updated successfully, but these errors were encountered:
David Barri (japgolly) said:
Hello. This regression prevents me from releasing the upcoming redesign of scalajs-react for Scala 2.12.
I'd really, really like to get it fixed in 2.12.2. Is there anything I can do to help that happen?
The attached file compiles fine with 2.11.8 but results in 4 errors using 2.12.0 and 2.12.1:
WithIdClass is a copy-paste of WithIdTypeAlias with only the Id definition changed. When Id is a class and not a type alias, it compiles without error in 2.12.x.
The text was updated successfully, but these errors were encountered: