diff options
| author | WormHeamer | 2025-08-10 22:55:35 -0400 |
|---|---|---|
| committer | WormHeamer | 2025-08-10 22:55:35 -0400 |
| commit | 1fd3086b919d01eeaf12978d74e9d3e073509a2e (patch) | |
| tree | 9946a620045923bba8d9ae30d2d3386273f10f98 | |
| parent | 57966ce12201c94847bc2cc699055efcafd255f8 (diff) | |
allow func foo T {}
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -481,7 +481,7 @@ Proc *parse_proc(Lexer *l, Unit *u) { lex_expect(l, TM_IDENT); proc_init(proc, l->ident); scope_push(&proc->scope, proc); - lex_expect(l, TM_LPAREN | TM_LBRACE); + lex_next(l); if (l->tok == TOK_LPAREN) { parse_args_list(l, proc); } |
