Skip to content
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

AnyVal getClass CCE #6108

Closed
scabug opened this issue Jul 19, 2012 · 2 comments
Closed

AnyVal getClass CCE #6108

scabug opened this issue Jul 19, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Jul 19, 2012

scala> 5.getClass
res0: Class[Int] = int

scala> (5: AnyVal).getClass
java.lang.ClassCastException: java.lang.Integer cannot be cast to scala.AnyVal

scala> (5: Any).getClass
res1: Class[_] = class java.lang.Integer
@scabug
Copy link
Author

scabug commented Jul 19, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6108?orig=1
Reporter: @paulp

@scabug
Copy link
Author

scabug commented Sep 11, 2012

@odersky said:
Not a direct duplicate, but this one is fixed by the same fix as #6326

@scabug scabug closed this as completed Sep 11, 2012
@scabug scabug added this to the 2.10.0 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants