Skip to content

Improve error message for package$Klass conflict with Klass #5760

Closed
@scabug

Description

@scabug

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 #4344, and I've read and misunderstood #4695.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions