mirror of
https://github.com/sbt/sbt.git
synced 2026-09-02 02:57:21 +02:00
Add three more missing WeakTypeTags
.. accidentally removed in 12c2734052
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user