diff options
author | paltherr <paltherr@epfl.ch> | 2003-08-14 15:30:45 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-08-14 15:30:45 +0000 |
commit | f92d38c415f89214dfea5e86f79e091b2c573551 (patch) | |
tree | 6e20718cfc46690f9c6a8cdc6c032d9ea4530050 /sources/scalac | |
parent | c635da58a6a73a066057afbc3873ceb76f233f80 (diff) | |
download | scala-f92d38c415f89214dfea5e86f79e091b2c573551.tar.gz scala-f92d38c415f89214dfea5e86f79e091b2c573551.tar.bz2 scala-f92d38c415f89214dfea5e86f79e091b2c573551.zip |
- Added code to fix result type of lifted prima...
- Added code to fix result type of lifted primary constructors
Diffstat (limited to 'sources/scalac')
-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(); } |