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

REPL incorrectly prints singleton types #5537

Closed
scabug opened this issue Mar 2, 2012 · 5 comments
Closed

REPL incorrectly prints singleton types #5537

scabug opened this issue Mar 2, 2012 · 5 comments
Assignees
Labels

Comments

@scabug
Copy link

@scabug scabug commented Mar 2, 2012

Welcome to Scala version v2.10.0-M2-87-gc3569aa4c6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_25).
Type in expressions to have them evaluated.
Type :help for more information.

scala> List[Predef.type](Predef)
res0: List[type] = List(scala.Predef$@3c7a279c)
@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Mar 2, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5537?orig=1
Reporter: @xeno-by
Affected Versions: 2.10.0

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Mar 2, 2012

@dcsobral said:
I don't see the issue, unless you mean the fact that REPL doesn't print paths to types?

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Mar 2, 2012

@xeno-by said:
Well, I'd like to see it (by it I mean the toString of Type) print:

res0: List[Predef.type] = List(scala.Predef$@3c7a279c)

in this particular case, because List[type] looks kind of incorrect.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Mar 3, 2012

@paulp said:
This is a pretty picky ticket - I assume you didn't realize it, but this is specific to Predef, not all singleton types. It omits Predef so you don't see types like "Predef.String" all over the place.

scala> List(Set)
res0: List[scala.collection.immutable.Set.type] = List(scala.collection.immutable.Set$@768dbb49)
@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Mar 3, 2012

@paulp said:
d852612c35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.