Skip to content

Commit ada69fb

Browse files
committed
Fix unexpanded K"parameters"
1 parent 5ec41d3 commit ada69fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/desugaring.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4502,7 +4502,7 @@ function expand_forms_2(ctx::DesugaringContext, ex::SyntaxTree, docs=nothing)
45024502
elseif k == K"toplevel"
45034503
# The toplevel form can't be lowered here - it needs to just be quoted
45044504
# and passed through to a call to eval.
4505-
@ast ctx ex [K"block"
4505+
ex2 = @ast ctx ex [K"block"
45064506
[K"assert" "toplevel_only"::K"Symbol" [K"inert" ex]]
45074507
[K"call"
45084508
eval ::K"Value"
@@ -4516,6 +4516,7 @@ function expand_forms_2(ctx::DesugaringContext, ex::SyntaxTree, docs=nothing)
45164516
]
45174517
]
45184518
]
4519+
expand_forms_2(ctx, ex2)
45194520
elseif k == K"vect"
45204521
check_no_parameters(ex, "unexpected semicolon in array expression")
45214522
expand_array(ctx, ex, "vect")

0 commit comments

Comments
 (0)