aboutsummaryrefslogtreecommitdiff
path: root/src/parse.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-25 18:08:54 +0200
committerlemon <lsof@mailbox.org>2022-08-25 18:08:54 +0200
commit09c083ea08b7436a9ca39734e5c6b82c6198746e (patch)
tree0c570c3f6e3becdca3989d189f638d71e304143f /src/parse.cff
parent9eeb4f4641481279895a927f97503d7a6938b2e5 (diff)
now test.cff kinda
Diffstat (limited to 'src/parse.cff')
-rw-r--r--src/parse.cff1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.cff b/src/parse.cff
index 0eb251d..3512c96 100644
--- a/src/parse.cff
+++ b/src/parse.cff
@@ -2584,6 +2584,7 @@ fn parsefn(P *Parser, loc Loc, toplevel bool, externp bool, name *const u8) *Dec
Fn.id = ++id;
// TODO tlalloc necessary for templates. but it leaks some memory
let decl = putdecl_alloc(P, P.tlalloc, loc, decl);
+ let Fn = &decl.u.Fn;
decl.toplevel = toplevel;
if !lexmatch(P, #null, '{') {