Skip to content

Commit feeb62f

Browse files
committed
Type-assert opts.delim_flags to reduce invalidations
1 parent 99e975a commit feeb62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/julia/parser.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ function parse_function_signature(ps::ParseState, is_function::Bool)
22192219
# function (f(x),) end ==> (function (tuple-p (call f x)) (block))
22202220
ambiguous_parens = opts.maybe_grouping_parens &&
22212221
peek_behind(ps).kind in KSet"macrocall $"
2222-
emit(ps, mark, K"tuple", PARENS_FLAG|opts.delim_flags)
2222+
emit(ps, mark, K"tuple", PARENS_FLAG|(opts.delim_flags::RawFlags))
22232223
if ambiguous_parens
22242224
# Got something like `(@f(x))`. Is it anon `(@f(x),)` or named sig `@f(x)` ??
22252225
emit(ps, mark, K"error", error="Ambiguous signature. Add a trailing comma if this is a 1-argument anonymous function; remove parentheses if this is a macro call acting as function signature.")

0 commit comments

Comments
 (0)