diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-28 18:20:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 18:20:18 +0200 |
commit | 9ba9b147fb8d7894761e2f2fb18b08601981db20 (patch) | |
tree | 0b8b34b9bbdeee0591c10f55f7e43b7d0d0ac02b /compiler/src/dotty/tools/dotc/sbt | |
parent | d9dedc5ac6690fa724271be33550e77696e193cb (diff) | |
parent | b6411818b2e84c0a28c501e2814de4cfde720208 (diff) | |
download | dotty-9ba9b147fb8d7894761e2f2fb18b08601981db20.tar.gz dotty-9ba9b147fb8d7894761e2f2fb18b08601981db20.tar.bz2 dotty-9ba9b147fb8d7894761e2f2fb18b08601981db20.zip |
Merge pull request #2139 from dotty-staging/fix/false-companion
Fix #2137: Create dummy companions for top-level objects without a real one
Diffstat (limited to 'compiler/src/dotty/tools/dotc/sbt')
-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)) |