case class with higher kinded type parameter generates buggy canEqual, triggers kind error since v2.11.0-M1-246-g46e8ece · Issue #9331 · scala/bug · GitHub
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
% scalac-hash 46e8eceecc5b5f6b49075550e54f035126fc256a sandbox/test.scala
sandbox/test.scala:9: error: kinds of the type arguments (Proxy[PP]) do not conform to the expected kinds of the type parameters (type P) in class Stuff.
Proxy[PP]'s type parameters do not match type P's expected parameters:
trait Proxy has one type parameter, but type P has one
case class Stuff[+P[PP <: Proxiable] <: Proxy[PP]](content: P[Data])
^
one error found
% ~/code/scala scalac-hash 46e8eceecc5b5f6b49075550e54f035126fc256a~1 sandbox/test.scala
% ~/code/scala cat sandbox/test.scala