diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-05-18 10:14:19 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-05-18 10:14:19 +0000 |
commit | 0577b210982f2c912c133f99cca72c9ea4ab5bcc (patch) | |
tree | 76b892ece8a3d7d51efc567d54fc9fd07711f0d9 /src/compiler/scala/tools/nsc/transform/Mixin.scala | |
parent | b7f77112a5701585d6af24a28178279da96c489d (diff) | |
download | scala-0577b210982f2c912c133f99cca72c9ea4ab5bcc.tar.gz scala-0577b210982f2c912c133f99cca72c9ea4ab5bcc.tar.bz2 scala-0577b210982f2c912c133f99cca72c9ea4ab5bcc.zip |
Closes #3417. No review (already done by Martin)
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/Mixin.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Mixin.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Mixin.scala b/src/compiler/scala/tools/nsc/transform/Mixin.scala index d39176e8a9..bc04796e1f 100644 --- a/src/compiler/scala/tools/nsc/transform/Mixin.scala +++ b/src/compiler/scala/tools/nsc/transform/Mixin.scala @@ -567,7 +567,7 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL { val newSyms = newDefs map (_.symbol) def isNotDuplicate(tree: Tree) = tree match { case DefDef(_, _, _, _, _, _) => - val sym = tree.symbol; + val sym = tree.symbol !(sym.isDeferred && (newSyms exists (nsym => nsym.name == sym.name && (nsym.tpe matches sym.tpe)))) case _ => |