From f92d38c415f89214dfea5e86f79e091b2c573551 Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 14 Aug 2003 15:30:45 +0000 Subject: - Added code to fix result type of lifted prima... - Added code to fix result type of lifted primary constructors --- sources/scalac/transformer/LambdaLift.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sources/scalac/transformer/LambdaLift.java') 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(); } -- cgit v1.2.3