@@ -484,7 +484,7 @@ function parse_block(ps::ParseState, down=parse_eq, mark=position(ps))
484
484
end
485
485
486
486
# 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 }
488
488
parse_Nary (ps, down, KSet " NewlineWs ;" , KSet " end else elseif catch finally" )
489
489
end
490
490
@@ -1602,7 +1602,7 @@ function parse_call_chain(ps::ParseState, mark, is_macrocall=false)
1602
1602
ckind == K " vcat" ? K " typed_vcat" :
1603
1603
ckind == K " comprehension" ? K " typed_comprehension" :
1604
1604
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) )
1606
1606
emit (ps, mark, outk, cflags)
1607
1607
check_ncat_compat (ps, mark, ckind)
1608
1608
end
@@ -2020,7 +2020,7 @@ function parse_resword(ps::ParseState)
2020
2020
elseif word == K " do"
2021
2021
bump (ps, TRIVIA_FLAG, error= " invalid `do` syntax" )
2022
2022
else
2023
- internal_error (" unhandled reserved word " , word)
2023
+ internal_error (" unhandled reserved word " , string ( word) )
2024
2024
end
2025
2025
end
2026
2026
0 commit comments