@@ -2112,7 +2112,7 @@ end
21122112
21132113# Separate decls and assignments (which require re-expansion)
21142114# local x, (y=2), z ==> local x; local z; y = 2
2115- function expand_decls (ctx, ex, is_const = false )
2115+ function expand_decls (ctx, ex)
21162116 declkind = kind (ex)
21172117 @assert declkind in KSet " local global"
21182118 declmeta = get (ex, :meta , nothing )
@@ -2124,7 +2124,7 @@ function expand_decls(ctx, ex, is_const=false)
21242124 @chk numchildren (binding) == 2
21252125 lhs = strip_decls! (ctx, stmts, declkind, declmeta, binding[1 ])
21262126 push! (stmts, expand_assignment (ctx, @ast ctx binding [kb lhs binding[2 ]]))
2127- elseif is_sym_decl (binding) && ! is_const
2127+ elseif is_sym_decl (binding)
21282128 strip_decls! (ctx, stmts, declkind, declmeta, binding)
21292129 else
21302130 throw (LoweringError (ex, " invalid syntax in variable declaration" ))
@@ -3085,7 +3085,7 @@ function expand_arrow_arglist(ctx, arglist, arrowname)
30853085 if k == K " where"
30863086 @ast ctx arglist [K " where"
30873087 expand_arrow_arglist (ctx, arglist[1 ], arrowname)
3088- argslist [2 ]
3088+ arglist [2 ]
30893089 ]
30903090 else
30913091 # The arglist can sometimes be parsed as a block, or something else, and
@@ -3098,7 +3098,6 @@ function expand_arrow_arglist(ctx, arglist, arrowname)
30983098 [K " parameters" arglist[2 ]]
30993099 ]
31003100 elseif k != K " tuple"
3101- # `x::Int -> body`
31023101 arglist = @ast ctx arglist [K " tuple"
31033102 arglist[1 ]
31043103 ]
0 commit comments