diff options
author | Martin Odersky <odersky@gmail.com> | 2012-04-11 20:39:54 -0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2012-04-11 20:39:54 -0700 |
commit | ca1bb43544f770be70926ce2924b6bde33fd054b (patch) | |
tree | 2a58912bf7fe3a9eebb1554aaecb6a47f0764f51 | |
parent | c297b97072cbeadad869338ff1b2e1c9955407a6 (diff) | |
download | scala-ca1bb43544f770be70926ce2924b6bde33fd054b.tar.gz scala-ca1bb43544f770be70926ce2924b6bde33fd054b.tar.bz2 scala-ca1bb43544f770be70926ce2924b6bde33fd054b.zip |
Fixed duplicate method problem for implicit wrappers.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 1 |
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) |