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
import scala.util.control._ class Foo[@specialized T] { def foo(x: T) = { val eh: PartialFunction[Throwable, Unit] = { case NonFatal(t) => () } } }
reports an error:
[error] found : x1.type (with underlying type Throwable) [error] required: A1 [error] val eh: PartialFunction[Throwable, Unit] = {
Removing the @specialized annotation, or putting the expression into a non-specializable method makes the error go away.
@specialized
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8633?orig=1 Reporter: @axel22 Affected Versions: 2.11.0
Sorry, something went wrong.
@VladUreche said: Fixed in miniboxing: miniboxing/miniboxing-plugin@8529025
[the patch can be easily ported, but since specialization is becoming deprecated, I won't invest the time in this patch]
No branches or pull requests
reports an error:
Removing the
@specialized
annotation, or putting the expression into a non-specializable method makes the error go away.The text was updated successfully, but these errors were encountered: