diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-23 16:54:58 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-03-23 17:43:17 +0100 |
commit | 6ab7c1da8987806e0e3cbc820781b6ef955c109b (patch) | |
tree | c606f0b45fb7eb608b40fab6fcc19be69d51d09b /compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala | |
parent | e54b7e337e5e69e8ef6cc866a641c1e3f0c3b148 (diff) | |
download | dotty-6ab7c1da8987806e0e3cbc820781b6ef955c109b.tar.gz dotty-6ab7c1da8987806e0e3cbc820781b6ef955c109b.tar.bz2 dotty-6ab7c1da8987806e0e3cbc820781b6ef955c109b.zip |
Revert "sbt.ExtractDependencies: avoid false dependencies"
This reverts commit 57641b9c7447fa0a6f1f47352dffb4c56c560b6a.
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.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala b/compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala index c392880c5..fefa63f6f 100644 --- a/compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala +++ b/compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala @@ -175,7 +175,7 @@ private class ExtractDependenciesCollector(implicit val ctx: Context) extends tp override def traverse(tree: Tree)(implicit ctx: Context): Unit = { tree match { case Import(expr, selectors) => - def lookupImported(name: Name) = expr.tpe.select(name).typeSymbol + def lookupImported(name: Name) = expr.tpe.member(name).symbol def addImported(name: Name) = { // importing a name means importing both a term and a type (if they exist) addDependency(lookupImported(name.toTermName)) |