diff --git a/main/settings/TaskMacro.scala b/main/settings/TaskMacro.scala index 344b90351..b8e2e0606 100644 --- a/main/settings/TaskMacro.scala +++ b/main/settings/TaskMacro.scala @@ -118,16 +118,16 @@ object TaskMacro private[this] def appendMacroImpl(c: Context)(init: c.Tree, append: c.Tree)(newName: String): c.Tree = { - import c.universe.{Apply,newTermName,Select,TypeApply} + import c.universe.{Apply,ApplyTag,newTermName,Select,SelectTag,TypeApply,TypeApplyTag} c.macroApplication match { - case Apply(Apply(TypeApply(Select(preT, nmeT), targs), _), a) => + case Apply(Apply(TypeApply(Select(preT, nmeT), targs), _), a) => Apply(Apply(TypeApply(Select(preT, newTermName(newName).encodedName), targs), init :: Nil), a) case x => unexpectedTree(x) } } private[this] def transformMacroImpl(c: Context)(init: c.Tree)(newName: String): c.Tree = { - import c.universe.{Apply,newTermName,Select} + import c.universe.{Apply,ApplyTag,newTermName,Select,SelectTag} val target = c.macroApplication match { case Apply(Select(prefix, _), _) => prefix