From b5be3e97d5e2455966f170b7cd0baba82c8fae12 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 8 Dec 2013 16:06:03 +0100 Subject: Fix that avoids overzealous function lifting. --- src/dotty/tools/dotc/typer/Applications.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc') diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index cb14fd785..ac02b9c59 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -408,7 +408,7 @@ trait Applications extends Compatibility { self: Typer => val ownType = ctx.traceIndented(i"apply $methRef to $typedArgs%, %", show = true) { if (!success) ErrorType else { - if (!sameSeq(app.args, orderedArgs)) { + if (!sameSeq(args, orderedArgs)) { // need to lift arguments to maintain evaluation order in the // presence of argument reorderings. liftFun() -- cgit v1.2.3