mlugg 9a70eeeac5
compiler: ensure local consts in comptime scope are comptime-known
This fixes a bug which exposed a compiler implementation detail (ZIR
alloc elision). Previously, `const` declarations with a runtime-known
value in a comptime scope were permitted only if AstGen was able to
elide the alloc in ZIR, since the error was reported by storing to the
comptime alloc.

This just adds a new instruction to also emit this error when the alloc
is elided.
2024-12-31 09:55:03 +00:00
..
2024-12-16 20:56:29 -05:00
2024-12-19 17:10:03 -05:00
2024-12-15 03:40:20 -08:00
2024-11-01 02:04:27 +03:30
2024-11-25 14:18:55 -08:00
2024-11-22 15:30:07 -08:00
2024-10-23 13:47:44 -07:00
2024-12-13 13:24:38 +01:00