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
case class with higher kinded type parameter generates buggy canEqual, triggers kind error since v2.11.0-M1-246-g46e8ece #9331
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9331?orig=1 |
@retronym said: |
@retronym said:
|
@adriaanm said: <synthetic> def canEqual(x$1: Any): Boolean = x$1.$isInstanceOf[Stuff[Proxy[PP]]](); |
@retronym said: import scala.language.higherKinds
trait Proxy[+T]
case class Stuff[+P[PP] <: Proxy[PP]]() The most self contained workaround seems to be manually implementing import scala.language.higherKinds
trait Proxiable {
def source: String
}
trait Proxy[+T <: Proxiable] {
def source: String
}
case class Data(source: String) extends Proxiable
case class Stuff[+P[PP <: Proxiable] <: Proxy[PP]](content: P[Data]) {
def canEqual(x$1: Any): Boolean = x$1 match { case _: Stuff[_] => true; case _ => false}
} |
Fred (fred) said: I saw this didn't make it in 2.11.7 and was wondering if there is anything I could do to help get it in 2.11.8? Thank you |
@adriaanm said: |
Fred (fred) said: |
Fred (fred) said: We would love not to be stuck with scala 2.10 and akka 2.3 until late 2016 (planned release of scala 2.11.9 according to http://scala-lang.org/news/2.11.8/). Thanks |
@adriaanm said: |
Reported: https://groups.google.com/forum/#!topic/scala-user/QiQ0AvVwYm8
The text was updated successfully, but these errors were encountered: