We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b547eb commit ad1905aCopy full SHA for ad1905a
src/main/scala/scala/async/internal/AnfTransform.scala
@@ -118,7 +118,7 @@ private[async] trait AnfTransform {
118
case MatchEnd(ld) =>
119
deriveLabelDef(ld, branchWithAssign)
120
case blk @ Block(thenStats, thenExpr) =>
121
- treeCopy.Block(blk, thenStats, typedAssign(thenExpr)).setType(definitions.UnitTpe)
+ treeCopy.Block(blk, thenStats, branchWithAssign(thenExpr)).setType(definitions.UnitTpe)
122
case _ =>
123
typedAssign(t)
124
}
0 commit comments