Skip to content

Commit 0c60f21

Browse files
committed
Improve naming of parameter type.
1 parent dfa0ef7 commit 0c60f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/typer/EtaExpansion.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ object EtaExpansion {
5757
/** Lift arguments that are not-idempotent into ValDefs in buffer `defs`
5858
* and replace by the idents of so created ValDefs.
5959
*/
60-
def liftArgs(defs: mutable.ListBuffer[Tree], methType: Type, args: List[Tree])(implicit ctx: Context) =
61-
methType.widen match {
60+
def liftArgs(defs: mutable.ListBuffer[Tree], methRef: Type, args: List[Tree])(implicit ctx: Context) =
61+
methRef.widen match {
6262
case MethodType(paramNames, paramTypes) =>
6363
(args, paramNames, paramTypes).zipped map { (arg, name, tp) =>
6464
if (tp.isInstanceOf[ExprType]) arg

0 commit comments

Comments
 (0)