summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2011-05-11 13:40:55 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2011-05-11 13:40:55 +0000
commitdacd4cab7e097f4bd7df7c581a95ab8b0a184f51 (patch)
treecad171993c0891ba6af13302def9785119fb6a88 /src
parent1e1c4d05dba31aed11edfd25e9350ab48ce2cd3e (diff)
downloadscala-dacd4cab7e097f4bd7df7c581a95ab8b0a184f51.tar.gz
scala-dacd4cab7e097f4bd7df7c581a95ab8b0a184f51.tar.bz2
scala-dacd4cab7e097f4bd7df7c581a95ab8b0a184f51.zip
Reverting r24927
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/transform/Mixin.scala7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Mixin.scala b/src/compiler/scala/tools/nsc/transform/Mixin.scala
index 943b0e2644..ac4f19f69d 100644
--- a/src/compiler/scala/tools/nsc/transform/Mixin.scala
+++ b/src/compiler/scala/tools/nsc/transform/Mixin.scala
@@ -892,11 +892,8 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL {
case DefDef(mods, name, tp, vp, tpt, rhs)
if sym.isModule && (!clazz.isTrait || clazz.isImplClass) && !sym.hasFlag(BRIDGE) =>
val attrThis =
- if (clazz.isImplClass && !isImplementedStatically(sym))
- gen.mkAttributedIdent(vp.head.head.symbol)
- //!!! I think this can be replaced by selfRef(tree.pos)
- else
- gen.mkAttributedThis(clazz)
+ if (clazz.isImplClass) gen.mkAttributedIdent(vp.head.head.symbol)
+ else gen.mkAttributedThis(clazz)
val rhs1 = mkInnerClassAccessorDoubleChecked(attrThis, rhs)
treeCopy.DefDef(stat, mods, name, tp, vp, tpt, typedPos(stat.pos)(rhs1))
case _ => stat