Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: None
    • Component/s: Repl / Interpreter
    • Labels:
      None

      Description

      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)
      

        Activity

        Hide
        Daniel Sobral added a comment -

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

        Show
        Daniel Sobral added a comment - I don't see the issue, unless you mean the fact that REPL doesn't print paths to types?
        Hide
        Eugene Burmako added a comment -

        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.

        Show
        Eugene Burmako added a comment - 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.
        Hide
        Paul Phillips added a comment -

        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)
        
        Show
        Paul Phillips added a comment - 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)
        Hide
        Paul Phillips added a comment -

        d852612c35

        Show
        Paul Phillips added a comment - d852612c35

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development