aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap/parse.c1
-rw-r--r--bootstrap/test2.cff2
2 files changed, 2 insertions, 1 deletions
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<T> {
!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);