Closed
Description
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.