You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (sameLength(fntpe.paramInfos, args) || ctx.phase.prev.relaxedTyping)
289
+
if (fntpe.paramInfos.hasSameLengthAs(args) || ctx.phase.prev.relaxedTyping)
290
290
safeSubstMethodParams(fntpe, args.tpes)
291
291
else
292
292
errorType(i"wrong number of arguments at ${ctx.phase.prev} for $fntpe: ${fn.tpe}, expected: ${fntpe.paramInfos.length}, found: ${args.length}", tree.srcPos)
@@ -358,7 +358,7 @@ trait TypeAssigner {
358
358
if tp eq pt then pt.newLikeThis(pt.paramNames, pt.paramInfos, pt.resType)
359
359
else tp)
360
360
valargTypes= args.tpes.mapConserve(ensureFresh)
361
-
if (sameLength(argTypes, paramNames)) pt.instantiate(argTypes)
361
+
if (argTypes.hasSameLengthAs(paramNames)) pt.instantiate(argTypes)
0 commit comments