diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-08 20:39:24 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-08 20:39:24 +0100 |
commit | c8692971103cc047a9de62050393807cb6fa7794 (patch) | |
tree | db318b643b3696b5a40a6976394aee630bd120af /src/dotty/tools/dotc/typer/Implicits.scala | |
parent | 8b9c14dcf8c74fbb9af2ecf842b8ba7776571f4c (diff) | |
download | dotty-c8692971103cc047a9de62050393807cb6fa7794.tar.gz dotty-c8692971103cc047a9de62050393807cb6fa7794.tar.bz2 dotty-c8692971103cc047a9de62050393807cb6fa7794.zip |
Change namedParts to also include the underlying types of TermRefs.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Implicits.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala index 789f1edda..017e5cbe9 100644 --- a/src/dotty/tools/dotc/typer/Implicits.scala +++ b/src/dotty/tools/dotc/typer/Implicits.scala @@ -228,7 +228,7 @@ trait ImplicitRunInfo { self: RunInfo => } tp.classSymbols(liftingCtx) foreach addClassScope case _ => - for (part <- tp.namedParts) + for (part <- tp.namedPartsWith(_.isType)) comps ++= iscope(part).companionRefs } new OfTypeImplicits(tp, comps)(ctx) |