mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
This commit enables the interpreter to handle nominal number types (U8, I32, F64, Dec, etc.) by adding special-case handling in layout resolution. Changes: - Added special-case handling in layout/store.zig for builtin number types When resolving layout for nominal types from Builtin module, check if it's a number type (U8, I8, U16, I16, ..., F32, F64, Dec) and return the appropriate scalar layout instead of trying to unroll the backing - Added empty_record case to gatherTags() in interpreter.zig Number types have empty tag union backing with empty_record extension, so gatherTags needs to handle this case - Updated test snapshots to reflect new type display format Tests now show Dec instead of Num(Frac(Dec)), U8 instead of Num(Int(Unsigned8)), etc. Results: 1331/1443 tests passing (94 failures remaining) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| fuzzing | ||
| int | ||
| playground-integration | ||
| snapshots | ||
| str | ||
| serialization_size_check.zig | ||