Skip to content

Don't allow inherited names to shadow names defined in the outer scope #8617

Closed
@odersky

Description

@odersky

See scala/bug#11921 (comment)

I think it's worth experimenting with a rule which says that an inherited member is not allowed to shadow a definition of the same name in an outer scope. Imports in outer scopes would be unaffected.

This could be a warning in 3.0 and an error in 3.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions