Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
c42f committed Aug 6, 2024
1 parent edee460 commit 0baf9b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/desugaring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,12 @@ function expand_call(ctx, ex)
end

function expand_for(ctx, ex)
iterspec = ex[1]
iterspecs = ex[1]

@chk kind(iterspecs) == K"iteration"
@chk numchildren(iterspecs) == 1

iterspec = iterspecs[1]
iter_var = iterspec[1]
iter_ex = iterspec[2]

Expand Down

0 comments on commit 0baf9b0

Please sign in to comment.