diff --git a/src/parser.cpp b/src/parser.cpp index 6ab0024433c9f07928261a751f4685ebabe668db..b2cfcceba13bcce4b61b887ed8dfddb7ba741d7d 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2008,6 +2008,7 @@ static AstNode *ast_parse_fn_proto(ParseContext *pc, size_t *token_index, bool m *token_index += 1; } else if (mandatory) { ast_expect_token(pc, first_token, TokenIdKeywordFn); + zig_unreachable(); } else { return nullptr; }