Community
Participate
Working Groups
Featurecalls are currently eagerly resolving all candidates. We should improve this behavior by exiting the resolution when definitive candidates, such as local variables have been found.
See ImportedNamesTest for the first test case which imports names like java.lang.s
For the record, local vars are already using LocalVariableScope.looksLikeLocalVariable() and friends. The same should be used for *visible* fields
One possible solution is to defer the lookup in the type scope and return a lazy description instead. It would only be evaluated if all other descriptions failed to link properly.
Unfortunately not 2.8