diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-11 05:21:13 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-11 05:21:13 -0700 |
commit | 228fb309a18d080dbcb2e51c1bbdf74da60865f9 (patch) | |
tree | 7ff9848c4d67769e0c9f7478ba7520ef4841d6a0 /src/compiler | |
parent | 4f696fe22f273aa0c3fa6d86c788904ae88fab3b (diff) | |
parent | 6f78b501c226bd3c24c516801a23865531591ebe (diff) | |
download | scala-228fb309a18d080dbcb2e51c1bbdf74da60865f9.tar.gz scala-228fb309a18d080dbcb2e51c1bbdf74da60865f9.tar.bz2 scala-228fb309a18d080dbcb2e51c1bbdf74da60865f9.zip |
Merge pull request #1274 from retronym/ticket/6335
SI-6335 More precise location of the implicit class synthetic method.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala index 4f597f97c9..83740f1658 100644 --- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala +++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala @@ -369,7 +369,7 @@ trait MethodSynthesis { } /** A synthetic method which performs the implicit conversion implied by - * the declaration of an implicit class. Yet to be written. + * the declaration of an implicit class. */ case class ImplicitClassWrapper(tree: ClassDef) extends DerivedFromClassDef { def completer(sym: Symbol): Type = ??? // not needed @@ -377,7 +377,7 @@ trait MethodSynthesis { def derivedSym: Symbol = { // Only methods will do! Don't want to pick up any stray // companion objects of the same name. - val result = enclClass.info decl name suchThat (_.isMethod) + val result = enclClass.info decl name suchThat (x => x.isMethod && x.isSynthetic) assert(result != NoSymbol, "not found: "+name+" in "+enclClass+" "+enclClass.info.decls) result } |