Skip to content

Commit 26c36d0

Browse files
committed
fix: Compile empty option using injl
Fix a copy-and-paste error.
1 parent f5b12ee commit 26c36d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl SingleExpression {
255255
res_a.and_then(|a| res_b.and_then(|b| ProgNode::pair(&a, &b).with_span(self)))
256256
})?
257257
}
258-
SingleExpressionInner::Option(None) => ProgNode::injr(&ProgNode::unit()),
258+
SingleExpressionInner::Option(None) => ProgNode::injl(&ProgNode::unit()),
259259
SingleExpressionInner::Either(Either::Left(inner)) => {
260260
let compiled = inner.compile(scope)?;
261261
ProgNode::injl(&compiled)

0 commit comments

Comments
 (0)