diff options
Diffstat (limited to 'sources/scalac/transformer/ExpandMixins.java')
-rw-r--r-- | sources/scalac/transformer/ExpandMixins.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/scalac/transformer/ExpandMixins.java b/sources/scalac/transformer/ExpandMixins.java index 19984b4b61..9ce484ab12 100644 --- a/sources/scalac/transformer/ExpandMixins.java +++ b/sources/scalac/transformer/ExpandMixins.java @@ -345,9 +345,10 @@ public class ExpandMixins extends Transformer { case Apply(Select(Tree qualifier, Name selector), Tree[] args): { Tree fun = ((Tree.Apply)newTree).fun; Symbol funOwnerSym = fun.symbol().owner(); - Symbol qualSym = qualifier.type.symbol(); + Symbol qualSym = qualifier.type.symbol().moduleClass(); if (! (qualifier instanceof Tree.Super || qualSym.isSubClass(funOwnerSym))) { + global.log("inserting cast from " + qualSym + " to " + funOwnerSym);//debug Type ownerTp = funOwnerSym.type(); Tree castQualifier = gen.Apply(gen.TypeApply(gen.Select(qualifier, defs.AS), |