We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
moduleClass
IndexedContext
2 parents b22e8e5 + 070d1bb commit ddb9ae0Copy full SHA for ddb9ae0
presentation-compiler/src/main/dotty/tools/pc/IndexedContext.scala
@@ -5,6 +5,7 @@ import scala.util.control.NonFatal
5
6
import dotty.tools.dotc.core.Contexts.*
7
import dotty.tools.dotc.core.Flags.*
8
+import dotty.tools.dotc.core.NameOps.moduleClassName
9
import dotty.tools.dotc.core.Names.*
10
import dotty.tools.dotc.core.Symbols.*
11
import dotty.tools.dotc.core.Types.*
@@ -170,7 +171,11 @@ object IndexedContext:
170
171
initial ++ fromPackageObjects
172
173
def fromImport(site: Type, name: Name)(using Context): List[Symbol] =
- List(site.member(name.toTypeName), site.member(name.toTermName))
174
+ List(
175
+ site.member(name.toTypeName),
176
+ site.member(name.toTermName),
177
+ site.member(name.moduleClassName),
178
+ )
179
.flatMap(_.alternatives)
180
.map(_.symbol)
181
0 commit comments