From 09c083ea08b7436a9ca39734e5c6b82c6198746e Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 25 Aug 2022 18:08:54 +0200 Subject: now test.cff kinda --- src/parse.cff | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parse.cff') 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, '{') { -- cgit v1.2.3