-
Notifications
You must be signed in to change notification settings - Fork 21
inconsistent printing of types #5941
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5941?orig=1 |
@xeno-by said: |
@retronym said:
And a design doc on reflection: https://docs.google.com/document/d/1nAwSw4TmMplsIlzh2shYLUJ5mVh3wndDa1Zm1H6an9A/edit# And a related report from the mailing lists: https://groups.google.com/forum/#!msg/scala-language/6TyLTfk4E-I/sg33aLe_-40J On Wed, May 1, 2013 at 7:59 AM, Ryan Hendrickson <Ryan[email protected]> wrote:
Any ideas as to why?
Classloaders, somehow. I get the same ## result with "scala" but different results with "scala -nobootcp".
% scala210_1 -nobootcp
Welcome to Scala version 2.10.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_45).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import reflect.runtime.universe._
import reflect.runtime.universe._
scala> (typeOf[String].normalize.##, typeOf[java.lang.String].normalize.##)
res0: (Int, Int) = (1712057924,559543568) |
WIP: https://github.com/scala/scala/compare/2.13.x...retronym:ticket/5941?expand=1 This blocks scala/scala-partest#75, so I'm going to try to get a fix into 2.13 |
In my opinion some types have an inconsistent implementation of toString. Some types return only their short names.
scala.Product
for example returns "Product" instead of "scala.Product".The text was updated successfully, but these errors were encountered: