summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scalac/transformer/ExpandMixinsPhase.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scalac/transformer/ExpandMixinsPhase.java b/sources/scalac/transformer/ExpandMixinsPhase.java
index e4c08ae58b..261c52354b 100644
--- a/sources/scalac/transformer/ExpandMixinsPhase.java
+++ b/sources/scalac/transformer/ExpandMixinsPhase.java
@@ -418,8 +418,10 @@ public class ExpandMixinsPhase extends Phase {
case TypeRef(Type prefix, Symbol symbol, Type[] args):
Type inline = (Type)inlines.get(symbol);
if (inline != null) return inline;
- prefix = apply(prefix);
- symbol = prefix.rebind(symbol);
+ if (!symbol.isClassType()) { // !!! why do we need that ?
+ prefix = apply(prefix);
+ symbol = prefix.rebind(symbol);
+ }
args = map(args);
return Type.TypeRef(prefix, symbol, args).unalias();
case SingleType(Type prefix, Symbol symbol):