aboutsummaryrefslogtreecommitdiff
path: root/src/env.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.cff')
-rw-r--r--src/env.cff1
1 files changed, 1 insertions, 0 deletions
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;