Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-5655

REPL gives error after an import with repeating name

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.9.0-1, Scala 2.9.1
    • Fix Version/s: Scala 2.10.0-M3, Scala 2.10.0
    • Component/s: Repl / Interpreter
    • Labels:
      None
    • Environment:

      Windows 7 Pro 64 bit with 64 bit JDK

      Description

      Following code causes it to give error. Not sure if this is a bug or a feature

      scala> object x { def x={} }
      defined module x
       
      scala> import x._
      import x._
       
      scala> exit
      <console>:7: error: not found: value x
      import x._
             ^
       
      scala> 1
      <console>:7: error: not found: value x
      import x._
             ^
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                extempore Paul Phillips
                Reporter:
                amitabh Amitabh
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: