diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/transformer/LambdaLift.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/scalac/transformer/LambdaLift.java b/sources/scalac/transformer/LambdaLift.java index c827d75bb7..6193af3fa3 100644 --- a/sources/scalac/transformer/LambdaLift.java +++ b/sources/scalac/transformer/LambdaLift.java @@ -520,7 +520,10 @@ public class LambdaLift extends OwnerTransformer global.log(sym + " has now type " + sym.typeAt(descr.nextPhase)); } } else if (sym.kind == CLASS) { - liftSymbol(sym.primaryConstructor(), oldtparams, newtparams, newparams); + Symbol constr = sym.primaryConstructor(); + liftSymbol(constr, oldtparams, newtparams, newparams); + // fix result type of constructor + constr.updateInfo(descr.transform(constr.nextInfo(), constr)); } else { throw new ApplicationError(); } |