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
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -376,10 +376,9 @@ trait TypeAssigner {
376
376
valtpe=
377
377
if (fntpe.isResultDependent) safeSubstParams(fntpe.resultType, fntpe.paramRefs, args.tpes)
378
378
else fntpe.resultType
379
-
valtpe1=
380
-
if (!ctx.erasedTypes && (fn.symbol.isDependentMethod || ctx.isDependent)) TypeOf(tpe, tree)
381
-
else tpe
382
-
ctx.normalizedType(tpe1)
379
+
if (!ctx.erasedTypes && (fn.symbol.isDependentMethod || ctx.isDependent))
380
+
ctx.normalizedType(TypeOf(tpe, tree))
381
+
else tpe
383
382
} else
384
383
errorType(i"wrong number of arguments at ${ctx.phase.prev} for $fntpe: ${fn.tpe}, expected: ${fntpe.paramInfos.length}, found: ${args.length}", tree.pos)
385
384
case t =>
@@ -439,10 +438,9 @@ trait TypeAssigner {
439
438
valargTypes= args.tpes
440
439
if (sameLength(argTypes, paramNames)) {
441
440
valtpe= pt.instantiate(argTypes)
442
-
valtpe1=
443
-
if (!ctx.erasedTypes && (fn.symbol.isDependentMethod || ctx.isDependent)) TypeOf(tpe, tree)
444
-
else tpe
445
-
ctx.normalizedType(tpe1)
441
+
if (!ctx.erasedTypes && (fn.symbol.isDependentMethod || ctx.isDependent))
0 commit comments