diff options
Diffstat (limited to 'sources/scalac/transformer/UnCurry.java')
-rw-r--r-- | sources/scalac/transformer/UnCurry.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sources/scalac/transformer/UnCurry.java b/sources/scalac/transformer/UnCurry.java index f088ca6943..9eadc4d85f 100644 --- a/sources/scalac/transformer/UnCurry.java +++ b/sources/scalac/transformer/UnCurry.java @@ -113,7 +113,14 @@ public class UnCurry extends OwnerTransformer System.out.flush(); //uncurry type and symbol Type prevtype = tree.type; - if (prevtype != null) tree.type = descr.uncurry(prevtype); + if (prevtype != null) { + switch (prevtype) { + case OverloadedType(_, _): + assert tree.symbol() != null; + prevtype = tree.symbol().removeInheritedOverloaded(prevtype); + } + tree.type = descr.uncurry(prevtype); + } switch (tree) { case ClassDef(_, _, AbsTypeDef[] tparams, ValDef[][] vparams, Tree tpe, Template impl): return copy.ClassDef( |