Skip to content

Commit 2a77932

Browse files
committed
Specialize parse_brackets() on the input function
This prevents invalidations.
1 parent 4a983f6 commit 2a77932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/julia/parser.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,8 +3171,8 @@ end
31713171
# (a,b=1; c,d=2; e,f=3) ==> (tuple-p a (= b 1) (parameters c (= d 2)) (parameters e (= f 3)))
31723172
#
31733173
# flisp: parts of parse-paren- and parse-arglist
3174-
function parse_brackets(after_parse::Function,
3175-
ps::ParseState, closing_kind, generator_is_last=true)
3174+
function parse_brackets(after_parse::F,
3175+
ps::ParseState, closing_kind, generator_is_last=true) where {F <: Function}
31763176
ps = ParseState(ps, range_colon_enabled=true,
31773177
space_sensitive=false,
31783178
where_enabled=true,

0 commit comments

Comments
 (0)