aboutsummaryrefslogtreecommitdiff
path: root/src/env.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/env.cff
parent9eeb4f4641481279895a927f97503d7a6938b2e5 (diff)
now test.cff kinda
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;