mirror of https://github.com/sbt/sbt.git
Add three more missing WeakTypeTags
.. accidentally removed in 12c2734052
This commit is contained in:
parent
747aa48c9c
commit
2bc5ba02f3
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue