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
The following code fails to compile:
object Test { implicit class As[X](val inside: X) extends AnyVal { def as[Y >: X]: Y = inside; } }
The message says:
Exception in thread "main" scala.reflect.internal.Types$TypeError: type mismatch; found : X required: Y
The compiler output is attached.
If I remove extends AnyVal it compiles fine.
extends AnyVal
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7241?orig=1 Reporter: Petr Pudlak (petrp) Affected Versions: 2.10.0 Attachments:
Sorry, something went wrong.
@retronym said: Already fixed in 2.10.1
retronym
No branches or pull requests
The following code fails to compile:
The message says:
The compiler output is attached.
If I remove
extends AnyVal
it compiles fine.The text was updated successfully, but these errors were encountered: