@@ -484,7 +484,7 @@ function parse_block(ps::ParseState, down=parse_eq, mark=position(ps))
484484end
485485
486486# Parse a block, but leave emitting the block up to the caller.
487- function parse_block_inner (ps:: ParseState , down)
487+ function parse_block_inner (ps:: ParseState , down:: F ) where {F <: Function }
488488 parse_Nary (ps, down, KSet " NewlineWs ;" , KSet " end else elseif catch finally" )
489489end
490490
@@ -1602,7 +1602,7 @@ function parse_call_chain(ps::ParseState, mark, is_macrocall=false)
16021602 ckind == K " vcat" ? K " typed_vcat" :
16031603 ckind == K " comprehension" ? K " typed_comprehension" :
16041604 ckind == K " ncat" ? K " typed_ncat" :
1605- internal_error (" unrecognized kind in parse_cat " , ckind)
1605+ internal_error (" unrecognized kind in parse_cat " , string ( ckind) )
16061606 emit (ps, mark, outk, cflags)
16071607 check_ncat_compat (ps, mark, ckind)
16081608 end
@@ -2020,7 +2020,7 @@ function parse_resword(ps::ParseState)
20202020 elseif word == K " do"
20212021 bump (ps, TRIVIA_FLAG, error= " invalid `do` syntax" )
20222022 else
2023- internal_error (" unhandled reserved word " , word)
2023+ internal_error (" unhandled reserved word " , string ( word) )
20242024 end
20252025end
20262026
0 commit comments