Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Misc Compiler
    • Labels:
      None
    • Environment:

      REPL :type type

      Description

      === What steps will reproduce the problem (please be specific and use wikiformatting)? ===

      ashee:~ amitava$$ scala 
      Welcome to Scala version 2.9.0.RC4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> :t (List[1,2,3])
      Failed to determine type.
      
      

      === What is the expected behavior? ===

      === What do you see instead? ===

      === Additional information ===
      This was discussed in the mailing list and fixed by extempore in RC3 - see changeset https://lampsvn.epfl.ch/trac/scala/changeset/24867

      See mailing list - https://groups.google.com/d/topic/scala-language/XjOh3xvopjI/discussion

      === What versions of the following are you using? ===

      • Scala: 2.9.0.RC4
      • Java: Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24
      • Operating system: Darwin Kernel Version 10.7.0

        Activity

        Hide
        Mark Harrah added a comment -

        This is not a regression, just that you used '[]' instead of '()', so the expression isn't valid.

        scala> :t (List(1,2,3))
        List[Int]
        

        This might instead be reclassified as a request to show compiler error messages for :t. It is possible Paul intentionally suppressed error detail, so he can comment on that.

        Show
        Mark Harrah added a comment - This is not a regression, just that you used '[]' instead of '()', so the expression isn't valid. scala> :t (List(1,2,3)) List[Int] This might instead be reclassified as a request to show compiler error messages for :t. It is possible Paul intentionally suppressed error detail, so he can comment on that.
        Hide
        Commit Message Bot added a comment -

        (extempore in r25040) Give some feedback on invalid :type expressions. Closes #4556, no review.

        Show
        Commit Message Bot added a comment - (extempore in r25040 ) Give some feedback on invalid :type expressions. Closes #4556, no review.

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Amitava Shee
            TracCC:
            Mark Harrah
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development