-
Couldn't load subscription status.
- Fork 21
Closed
Description
Under current implementation, both fields are mostly empty. An immediate consequence is :imports doesn't report anything. Also it causes problems to other components that rely on these fields, such as when defining classes in REPL with -Yrepl-class-based enabled. See issue [SI-9880].
There seem to be a few issues here:
sym.thisTypeon a module symbol always returnsNoPrefix. Should probably usesym.typeOfThisinstead.- It doesn't handle renames because it won't be able to find the renames in importable members.
importableMembersmay not always be able to return complete list (the case I encountered was withscala.reflect.runtime.universewhich has a type ofscala.reflect.api.JavaUniverse). Thus we probably should not restrictimportedNamesto onlyimportableMembersfor non-wildcard imports.- This is caused by
typeOfExpressioninadvertently changing phase tojvm.