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/env.cff | 1 + 1 file changed, 1 insertion(+) (limited to 'src/env.cff') diff --git a/src/env.cff b/src/env.cff index 04dc81d..d45e373 100644 --- a/src/env.cff +++ b/src/env.cff @@ -32,6 +32,7 @@ extern fn envput_alloc(env *Env, alloc *Allocator, decl Decl, old **const Decl) switch { case old.u.#tag == :Fn and decl.u.#tag == :Fn and decl.u.Fn.ty == old.u.Fn.ty and (old.u.Fn.body->empty() or decl.u.Fn.body->empty()); + decl.u.Fn.id = old.u.Fn.id; case old.u.#tag == :Ty and decl.u.#tag == :Ty and old.u.Ty == decl.u.Ty; -- cgit v1.2.3