diff options
Diffstat (limited to 'src')
-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) |