@@ -955,7 +955,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
955955
956956 val dummyArg = dummyTreeOfType(ownType)
957957 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 {
959959 case Apply (Apply (unapply, `dummyArg` :: Nil ), args2) => assert(args2.nonEmpty); args2
960960 case Apply (unapply, `dummyArg` :: Nil ) => Nil
961961 case Inlined (u, _, _) => unapplyImplicits(u)
@@ -982,7 +982,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
982982 List .fill(argTypes.length - args.length)(WildcardType )
983983 }
984984 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)
986986 unapp.println(s " unapply patterns = $unapplyPatterns" )
987987 if ((ownType eq selType) || ownType.isError) result
988988 else tryWithClassTag(Typed (result, TypeTree (ownType)), selType)
0 commit comments