Skip to content

Commit 74c3613

Browse files
Rename
1 parent fb017bf commit 74c3613

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,21 @@ class Definitions {
111111
val decls = newScope
112112
val arity = name.functionArity
113113
val paramNamePrefix = tpnme.scala_ ++ str.NAME_JOIN ++ name ++ str.EXPAND_SEPARATOR
114-
val argParams = List.tabulate(arity) { i =>
114+
val argParamRefs = List.tabulate(arity) { i =>
115115
enterTypeParam(cls, paramNamePrefix ++ "T" ++ (i + 1).toString, Contravariant, decls).typeRef
116116
}
117117
val resParam = enterTypeParam(cls, paramNamePrefix ++ "R", Covariant, decls)
118118
val (methodType, parentTraits) =
119119
if (name.firstPart.startsWith(str.ImplicitFunction)) {
120120
val superTrait =
121-
FunctionType(arity).appliedTo(argParams ::: resParam.typeRef :: Nil)
121+
FunctionType(arity).appliedTo(argParamRefs ::: resParam.typeRef :: Nil)
122122
(ImplicitMethodType, superTrait :: Nil)
123123
}
124124
else (MethodType, Nil)
125125
val applyMeth =
126126
decls.enter(
127127
newMethod(cls, nme.apply,
128-
methodType(argParams, resParam.typeRef), Deferred))
128+
methodType(argParamRefs, resParam.typeRef), Deferred))
129129
denot.info =
130130
ClassInfo(ScalaPackageClass.thisType, cls, ObjectType :: parentTraits, decls)
131131
}

0 commit comments

Comments
 (0)