summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-21 09:17:14 -0700
committerPaul Phillips <paulp@improving.org>2012-03-21 09:19:54 -0700
commit5f82067bbf5a66f732cee25cdd5e5012438062a0 (patch)
tree83bd45f5e2e846fb4eb06ecc24b9d8d1ccdf89ab /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parente2951867f51bf464b07f759662bfc50dfaf48e5b (diff)
downloadscala-5f82067bbf5a66f732cee25cdd5e5012438062a0.tar.gz
scala-5f82067bbf5a66f732cee25cdd5e5012438062a0.tar.bz2
scala-5f82067bbf5a66f732cee25cdd5e5012438062a0.zip
Clarifying MethodSynthesis.
Tried to paint a picture of how one might synthesize an implicit method to accompany an implicit class.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index c5fb13a5a9..6b27c27652 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -665,6 +665,10 @@ trait Namers extends MethodSynthesis {
"If possible, define " + tree.symbol + " in " + owner.skipPackageObject + " instead."
)
}
+
+ // Suggested location only.
+ if (mods.isImplicit)
+ enterImplicitClass(tree)
}
// this logic is needed in case typer was interrupted half