Skip to content

Commit ad1905a

Browse files
committed
Add missing recursion to branchWithAssign
1 parent 7b547eb commit ad1905a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/async/internal/AnfTransform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private[async] trait AnfTransform {
118118
case MatchEnd(ld) =>
119119
deriveLabelDef(ld, branchWithAssign)
120120
case blk @ Block(thenStats, thenExpr) =>
121-
treeCopy.Block(blk, thenStats, typedAssign(thenExpr)).setType(definitions.UnitTpe)
121+
treeCopy.Block(blk, thenStats, branchWithAssign(thenExpr)).setType(definitions.UnitTpe)
122122
case _ =>
123123
typedAssign(t)
124124
}

0 commit comments

Comments
 (0)