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

Improve error message for package$Klass conflict with Klass

    Details

      Description

      If I follow the warning recommendation and move a class out of a package object, then recompile without cleaning, I get a generic, tautological error message:

      pkgobjection.scala:9: error: NoLongerImplementedError is already defined as class NoLongerImplementedError
      

      It would be nicer to specify: "...as class NoLongerImplementedError in package object pkgobjection."

      I've read and understood SI-4344, and I've read and misunderstood SI-4695.

      The spec says I should never (for now) let this happen, and maybe it doesn't in a tooled environment.

        Attachments

          Activity

            People

            • Assignee:
              apm A. P. Marki
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: