Skip to content

Commit b9da714

Browse files
authored
fixes merge conflict, minor cfg bugfix (#1088)
1 parent 5a1507c commit b9da714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nimony/controlflow.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ type
497497
IfExpr, CaseExpr, TryExpr, BlockExpr
498498

499499
proc trIfCaseTryBlockExpr(c: var ControlFlow; n: var Cursor; kind: ControlFlowAsExprKind; tar: var Target) =
500-
if tar.t.len == 1 and tar.t[0].kind == Symbol:
500+
if tar.m != IsAppend and tar.t.len == 1 and tar.t[0].kind == Symbol:
501501
# no need for yet another temporary
502502
case kind
503503
of IfExpr:

0 commit comments

Comments
 (0)