Skip to content

deprecate nested "overriding" classes with same name #8353

Closed
scala/scala
#8705
@scabug

Description

@scabug

Martin says:

In dotty I propose to no longer allow nested classes with the same name which shadow each other. It's less convenient that way, but a lot safer.

instead of:

trait Core extends Base {
  class Status
}

trait Ext extends Core {
  class Status extends super.Status
}

write:

trait Core extends Base {
  class Status
}

trait Ext extends Core {
  class StatusExt extends Status
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions