diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-11-29 21:55:14 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-11-29 21:55:14 +1000 |
commit | 9502a061fa007ceb1d4e550fdb386a3645c67b1c (patch) | |
tree | d4cff2c254b1eb93978a32154de465fcea89658a /src/compiler/scala | |
parent | 37037fe70651eee7a1e8a77a2f8b6e74968836b6 (diff) | |
download | scala-9502a061fa007ceb1d4e550fdb386a3645c67b1c.tar.gz scala-9502a061fa007ceb1d4e550fdb386a3645c67b1c.tar.bz2 scala-9502a061fa007ceb1d4e550fdb386a3645c67b1c.zip |
Refactor companion lookup methods after code review
Diffstat (limited to 'src/compiler/scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Contexts.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala index cbe9e522a2..7988ac9f16 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala @@ -1196,7 +1196,7 @@ trait Contexts { self: Analyzer => final def lookupCompanionOf(original: Symbol): Symbol = { lookupScopeEntry(original) match { case null => NoSymbol - case entry => entry.owner.lookupCompanion(original).filter(_.isCoDefinedWith(original)) + case entry => entry.owner.lookupCompanion(original) } } |