From 064d1aea4ec642ac32c8e3b2b6ac88dce31da206 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 10:29:37 +0200 Subject: oops --- bootstrap/parse.c | 1 + bootstrap/test2.cff | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap/parse.c b/bootstrap/parse.c index ccdb510..2340182 100644 --- a/bootstrap/parse.c +++ b/bootstrap/parse.c @@ -2842,6 +2842,7 @@ staticvaryield(struct decl *decl, void *arg) { if (a->P->is_header && a->externp && decl->var.ini) fatal(a->P, decl->span, "cannot define extern variable in header"); + putdecl(a->P, decl->span, decl); if (a->yield) a->yield(decl, a->yarg); } diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index a48247e..979d251 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -16,7 +16,7 @@ struct Bit { !fn foo(x T) T { return ~x + Y; } } -defmacro def2(x, v) [def x = (v)] +defmacro def2(x, v) [static x = (v)] def2(Y, 3.3); -- cgit v1.2.3