From bb6372b1c9958dcd6c60d3e7802ea587f3f2f644 Mon Sep 17 00:00:00 2001 From: paltherr Date: Mon, 8 Sep 2003 00:50:35 +0000 Subject: - Added more general getSubst methods in Type - Added do nothing methods in Type.UdpdateSubstSymMap --- sources/scalac/transformer/LambdaLift.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources/scalac/transformer/LambdaLift.java') 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); } -- cgit v1.2.3