diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/scala/scala/async/internal/ExprBuilder.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/scala/scala/async/internal/ExprBuilder.scala b/src/main/scala/scala/async/internal/ExprBuilder.scala index 2e3a017..117701d 100644 --- a/src/main/scala/scala/async/internal/ExprBuilder.scala +++ b/src/main/scala/scala/async/internal/ExprBuilder.scala @@ -346,12 +346,11 @@ trait ExprBuilder { List( CaseDef( Bind(name.t, Ident(nme.WILDCARD)), - Apply(Ident(defn.NonFatalClass), List(Ident(name.t))), - Block(List({ + Apply(Ident(defn.NonFatalClass), List(Ident(name.t))), { val t = Expr[Throwable](Ident(name.t)) futureSystemOps.completeProm[T]( Expr[futureSystem.Prom[T]](symLookup.memberRef(name.result)), reify(scala.util.Failure(t.splice))).tree - }), literalUnit))), EmptyTree)) + })), EmptyTree)) /** * assumes tr: Try[Any] is in scope. |