@ -174,6 +174,7 @@ impl Parser {
TokenKind::Identifier(_) | TokenKind::Literal(_) => {
args.push(self.parse_expression()?)
}
TokenKind::Keyword(Keyword::Boolean) => args.push(self.parse_expression()?),
_ => {
return Err(self.make_error(TokenKind::BraceClose, next));
@ -607,13 +607,14 @@ fn test_function_with_return_type() {
#[test]
#[ignore]
fn test_booleans_in_function_call() {
let raw = "
if n > 2 {
_printf(true)
} else {
fn main() {
";
let tokens = tokenize(raw);