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
Incorrect field initialization in specialized traits #10094
Labels
Comments
Imported From: https://issues.scala-lang.org/browse/SI-10094?orig=1 |
joroKr21
added a commit
to joroKr21/scala
that referenced
this issue
Jul 13, 2021
Didn't investigate in which version it progressed.
joroKr21
added a commit
to joroKr21/scala
that referenced
this issue
Jul 13, 2021
Didn't investigate in which version it progressed.
lrytz
added a commit
to scala/scala
that referenced
this issue
Jul 14, 2021
Fix scala/bug#10094 - add regression test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reported on scala-internals by Georgi Jojgov.
Results in a
ClassCastException: String cannot be cast to Integer
at run-time.The bad code is generated in constructors:
when creating a
C[String]
, the unboxing ofvalue
will fail.As a test case, here's a full example (as reported on the mailing list), it works in 2.11.8
The text was updated successfully, but these errors were encountered: