diff options
author | paltherr <paltherr@epfl.ch> | 2003-09-08 00:50:35 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-09-08 00:50:35 +0000 |
commit | bb6372b1c9958dcd6c60d3e7802ea587f3f2f644 (patch) | |
tree | afe77e5a84721a99cb479726f08cee069419f4cf /sources/scalac/transformer/LambdaLift.java | |
parent | a9af998cdc3175c764fa0f17d276dfd96dfe1579 (diff) | |
download | scala-bb6372b1c9958dcd6c60d3e7802ea587f3f2f644.tar.gz scala-bb6372b1c9958dcd6c60d3e7802ea587f3f2f644.tar.bz2 scala-bb6372b1c9958dcd6c60d3e7802ea587f3f2f644.zip |
- Added more general getSubst methods in Type
- Added do nothing methods in Type.UdpdateSubstSymMap
Diffstat (limited to 'sources/scalac/transformer/LambdaLift.java')
-rw-r--r-- | sources/scalac/transformer/LambdaLift.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/transformer/LambdaLift.java b/sources/scalac/transformer/LambdaLift.java index 9e3a497c80..af1881ea7d 100644 --- a/sources/scalac/transformer/LambdaLift.java +++ b/sources/scalac/transformer/LambdaLift.java @@ -562,14 +562,14 @@ public class LambdaLift extends OwnerTransformer case MethodType(_, _): return Type.PolyType( newtparams, - Type.getUpdateSubst(oldtparams, newtparams).apply(tp)); + Type.getSubst(oldtparams, newtparams, true).apply(tp)); case PolyType(Symbol[] tparams, Type restpe): Symbol[] tparams1 = new Symbol[tparams.length + newtparams.length]; System.arraycopy(tparams, 0, tparams1, 0, tparams.length); System.arraycopy(newtparams, 0, tparams1, tparams.length, newtparams.length); return Type.PolyType( tparams1, - Type.getUpdateSubst(oldtparams, newtparams).apply(restpe)); + Type.getSubst(oldtparams, newtparams, true).apply(restpe)); default: throw new ApplicationError("illegal type: " + tp); } |