Add three more missing WeakTypeTags

.. accidentally removed in 12c2734052
This commit is contained in:
Dale Wijnand 2017-03-27 14:20:20 +01:00
parent 747aa48c9c
commit 2bc5ba02f3
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
2 changed files with 3 additions and 3 deletions

View File

@ -48,13 +48,13 @@ object FullConvert extends Convert {
case _ => Converted.NotApplicable[c.type]
}
private def wrapInit[T](c: blackbox.Context)(tree: c.Tree): Converted[c.type] = {
private def wrapInit[T: c.WeakTypeTag](c: blackbox.Context)(tree: c.Tree): Converted[c.type] = {
val i = c.Expr[Initialize[T]](tree)
val t = c.universe.reify(Def.toITask(i.splice)).tree
Converted.Success[c.type](t)
}
private def wrapTask[T](c: blackbox.Context)(tree: c.Tree): Converted[c.type] = {
private def wrapTask[T: c.WeakTypeTag](c: blackbox.Context)(tree: c.Tree): Converted[c.type] = {
val i = c.Expr[Task[T]](tree)
val t = c.universe.reify(Def.valueStrict[Task[T]](i.splice)).tree
Converted.Success[c.type](t)

View File

@ -25,7 +25,7 @@ object InitializeConvert extends Convert {
case _ => Converted.NotApplicable
}
private def convert[T](c: blackbox.Context)(in: c.Tree): Converted[c.type] =
private def convert[T: c.WeakTypeTag](c: blackbox.Context)(in: c.Tree): Converted[c.type] =
{
val i = c.Expr[Initialize[T]](in)
val t = c.universe.reify(i.splice).tree