File tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -528,6 +528,7 @@ object Erasure {
528
528
}
529
529
}
530
530
531
+ /** The type of an Apply node which might still be missing some arguments */
531
532
private def applyResultType (mt : MethodType , args : List [Tree ], bunchArgs : Boolean = false )(using Context ): Type =
532
533
if bunchArgs || mt.paramNames.length <= args.length then
533
534
mt.resultType
@@ -551,9 +552,9 @@ object Erasure {
551
552
fun1.tpe.widen match
552
553
case mt : MethodType =>
553
554
val bunchArgs = mt.paramInfos match
554
- case JavaArrayType (elemType) :: Nil => // pre-test for efficiency
555
- elemType.isRef(defn.ObjectClass ) // pre-test for efficiency
556
- && origFunType.paramInfoss.flatten.length > MaxImplementedFunctionArity //
555
+ case JavaArrayType (elemType) :: Nil =>
556
+ elemType.isRef(defn.ObjectClass )
557
+ && origFunType.paramInfoss.flatten.length > MaxImplementedFunctionArity
557
558
case _ => false
558
559
val args1 =
559
560
if bunchArgs then args0.map(typedExpr(_, defn.ObjectType ))
You can’t perform that action at this time.
0 commit comments