Skip to content

Commit 6ab7c1d

Browse files
committed
Revert "sbt.ExtractDependencies: avoid false dependencies"
This reverts commit 57641b9. Using `Type#select` instead of `Type#member` turned out to not help at all in avoiding false dependencies, you can still get a symbol whose denotation does not reallyExists. A proper fix for this issue is contained in the next commit.
1 parent e54b7e3 commit 6ab7c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private class ExtractDependenciesCollector(implicit val ctx: Context) extends tp
175175
override def traverse(tree: Tree)(implicit ctx: Context): Unit = {
176176
tree match {
177177
case Import(expr, selectors) =>
178-
def lookupImported(name: Name) = expr.tpe.select(name).typeSymbol
178+
def lookupImported(name: Name) = expr.tpe.member(name).symbol
179179
def addImported(name: Name) = {
180180
// importing a name means importing both a term and a type (if they exist)
181181
addDependency(lookupImported(name.toTermName))

0 commit comments

Comments
 (0)