summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-04-11 20:39:54 -0700
committerMartin Odersky <odersky@gmail.com>2012-04-11 20:39:54 -0700
commitca1bb43544f770be70926ce2924b6bde33fd054b (patch)
tree2a58912bf7fe3a9eebb1554aaecb6a47f0764f51 /src/compiler
parentc297b97072cbeadad869338ff1b2e1c9955407a6 (diff)
downloadscala-ca1bb43544f770be70926ce2924b6bde33fd054b.tar.gz
scala-ca1bb43544f770be70926ce2924b6bde33fd054b.tar.bz2
scala-ca1bb43544f770be70926ce2924b6bde33fd054b.zip
Fixed duplicate method problem for implicit wrappers.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
index 097af5d456..875c83969e 100644
--- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala
@@ -230,6 +230,7 @@ trait MethodSynthesis {
val wrapper = ImplicitClassWrapper(cd)
val meth = wrapper.derivedSym
val mdef = context.unit.synthetics(meth)
+ context.unit.synthetics -= meth
meth setAnnotations deriveAnnotations(annotations, MethodTargetClass, false)
cd.symbol setAnnotations deriveAnnotations(annotations, ClassTargetClass, true)
List(cd, mdef)