Skip to content

Commit e04786f

Browse files
committed
Cleanup code
1 parent cb4e1b8 commit e04786f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
653653

654654
typedArgs = liftArgs(liftedDefs, methType, liftable) ++ rest
655655

656-
val newOrder = (liftedDefs zip indices).sortBy(_._2).unzip._1
657-
liftedDefs = ListBuffer.empty
658-
liftedDefs ++= newOrder
656+
liftedDefs = (liftedDefs zip indices).sortBy(_._2).unzip._1.to
659657
}
660658
if (firstDiff(typedArgs, args) < 0) // trick to cut down on tree copying
661659
typedArgs = args.asInstanceOf[List[Tree]]

0 commit comments

Comments
 (0)