diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 15:14:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 15:14:37 -0400 |
| commit | f5612e38183dc20d18f207f8ab055574a4d93ad0 (patch) | |
| tree | c2caf5a0311b6d9fd0fbd4c08493dac5981088be /src/compile/reductions.c | |
| parent | 7f6683269ce689a83b9c6e1fae15e0cc60351095 (diff) | |
Bugfixes for anonymous enums, code cleanup to remove type_to_string(),
and changed it so anonymous enums show up in doctests with their full
type instead of `enum$20`
Diffstat (limited to 'src/compile/reductions.c')
| -rw-r--r-- | src/compile/reductions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/reductions.c b/src/compile/reductions.c index 438e072b..159158e3 100644 --- a/src/compile/reductions.c +++ b/src/compile/reductions.c @@ -17,7 +17,7 @@ Text_t compile_reduction(env_t *env, ast_t *ast) { type_t *iter_t = get_type(env, reduction->iter); type_t *item_t = get_iterated_type(iter_t); if (!item_t) - code_err(reduction->iter, "I couldn't figure out how to iterate over this type: ", type_to_str(iter_t)); + code_err(reduction->iter, "I couldn't figure out how to iterate over this type: ", type_to_text(iter_t)); static int64_t next_id = 1; ast_t *item = FakeAST(Var, String("$it", next_id++)); |
