Skip to content

Consider hiding the distinction between Select & Ident #1686

Closed
@DarkDimius

Description

@DarkDimius

In Dotty, Select & Idents are very interchangeable and the only reliable way to see if this is a selection or a direct reference is to look at the type.

Correct handling of them is counterintuitive, as one would assume he could trust the tree, but he cant: https://github.com/lampepfl/dotty/blob/master/src/dotty/tools/backend/jvm/DottyBackendInterface.scala#L428-L438

This introduces misconceptions such as the one happened at #1685

Note that we already have a tree type that should be used instead: RefTree.

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