@@ -475,7 +475,7 @@ function parse_block(ps::ParseState, down=parse_eq, mark=position(ps))
475475end
476476
477477# Parse a block, but leave emitting the block up to the caller.
478- function parse_block_inner (ps:: ParseState , down)
478+ function parse_block_inner (ps:: ParseState , down:: F ) where {F <: Function }
479479 parse_Nary (ps, down, KSet " NewlineWs ;" , KSet " end else elseif catch finally" )
480480end
481481
@@ -1585,7 +1585,7 @@ function parse_call_chain(ps::ParseState, mark, is_macrocall=false)
15851585 ckind == K " vcat" ? K " typed_vcat" :
15861586 ckind == K " comprehension" ? K " typed_comprehension" :
15871587 ckind == K " ncat" ? K " typed_ncat" :
1588- internal_error (" unrecognized kind in parse_cat " , ckind)
1588+ internal_error (" unrecognized kind in parse_cat " , string ( ckind) )
15891589 emit (ps, mark, outk, cflags)
15901590 check_ncat_compat (ps, mark, ckind)
15911591 end
@@ -2011,7 +2011,7 @@ function parse_resword(ps::ParseState)
20112011 elseif word == K " do"
20122012 bump (ps, TRIVIA_FLAG, error= " invalid `do` syntax" )
20132013 else
2014- internal_error (" unhandled reserved word " , word)
2014+ internal_error (" unhandled reserved word " , string ( word) )
20152015 end
20162016end
20172017
0 commit comments