Skip to content

Commit

Permalink
compiler: fix code generation for channel iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Dec 27, 2024
1 parent 9f423a3 commit 77a9eb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/julec/obj/cxx/scope.jule
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ impl scopeCoder {
writeExpr := fn() {
// Write channel receive expression.
// Use built-in expression for that.
// sb should be cleared already.
// sb should be cleared, make sure content is used already.
sb.Clear()
if ref {
sb.WriteByte('*')!
}
Expand Down

0 comments on commit 77a9eb4

Please sign in to comment.