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
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/typer/TypeAssigner.scala
+1-1
Original file line number
Diff line number
Diff line change
@@ -362,7 +362,7 @@ trait TypeAssigner {
362
362
valownType= fn.tpe.widen match {
363
363
casefntpe: MethodType=>
364
364
if (sameLength(fntpe.paramInfos, args) || ctx.phase.prev.relaxedTyping)
365
-
if (fntpe.isDependent) safeSubstParams(fntpe.resultType, fntpe.paramRefs, args.tpes)
365
+
if (fntpe.isResultDependent) safeSubstParams(fntpe.resultType, fntpe.paramRefs, args.tpes)
366
366
else fntpe.resultType
367
367
else
368
368
errorType(i"wrong number of arguments at ${ctx.phase.prev} for $fntpe: ${fn.tpe}, expected: ${fntpe.paramInfos.length}, found: ${args.length}", tree.pos)
0 commit comments