fix: semantic restrictions for global variables, constant folding

This commit is contained in:
Brett Broadhurst 2026-03-28 11:00:07 -06:00
parent cbcc796f1e
commit 9b5cd4038f
Failed to generate hash of commit
13 changed files with 569 additions and 375 deletions

View file

@ -504,6 +504,7 @@ fn setDeclaration(
.extra_index = astgen.addExtraAssumeCapacity(Ir.Inst.Declaration{
.name = args.name,
.value = args.value,
.flags = if (args.node.tag == .const_decl) 0x01 else 0x00,
}),
};
}