@@ -955,7 +955,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
955
955
}
956
956
val dummyArg = dummyTreeOfType(ownType)
957
957
val unapplyApp = typedExpr(untpd.TypedSplice (Apply (unapplyFn, dummyArg :: Nil )))
958
- def unapplyImplicits (unapp : Tree = unapplyApp ): List [Tree ] = unapp match {
958
+ def unapplyImplicits (unapp : Tree ): List [Tree ] = unapp match {
959
959
case Apply (Apply (unapply, `dummyArg` :: Nil ), args2) => assert(args2.nonEmpty); args2
960
960
case Apply (unapply, `dummyArg` :: Nil ) => Nil
961
961
case Inlined (u, _, _) => unapplyImplicits(u)
@@ -982,7 +982,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
982
982
List .fill(argTypes.length - args.length)(WildcardType )
983
983
}
984
984
val unapplyPatterns = (bunchedArgs, argTypes).zipped map (typed(_, _))
985
- val result = assignType(cpy.UnApply (tree)(unapplyFn, unapplyImplicits(), unapplyPatterns), ownType)
985
+ val result = assignType(cpy.UnApply (tree)(unapplyFn, unapplyImplicits(unapplyApp ), unapplyPatterns), ownType)
986
986
unapp.println(s " unapply patterns = $unapplyPatterns" )
987
987
if ((ownType eq selType) || ownType.isError) result
988
988
else tryWithClassTag(Typed (result, TypeTree (ownType)), selType)
0 commit comments