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
It seems to be a variant of #8702
https://scalafiddle.io/sf/Qm1ynvP/13
case class A[T](private val v: AnyRef) extends AnyVal class B[T, U] extends (T => A[U]) { override def apply(k: T): A[U] = ??? } ScalaFiddle.scala:6: error: bridge generated for member method apply: (k: T)ScalaFiddle.A[U] in class B which overrides method apply: (v1: T1)R in trait Function1 clashes with definition of the member itself; both have erased type (v1: Object)Object override def apply(k: T): A[U] = ???
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-10082?orig=1 Reporter: Flávio W. Brasil (fwbrasil)
Sorry, something went wrong.
Flávio W. Brasil (fwbrasil) said: Also happens on Scala 2.12.0
@retronym said: This is a known limitation of the encoding of value classes. Unfortunately the best we can do is issue the error here.
retronym
No branches or pull requests
It seems to be a variant of #8702
https://scalafiddle.io/sf/Qm1ynvP/13
The text was updated successfully, but these errors were encountered: