diff options
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); } |