From f5612e38183dc20d18f207f8ab055574a4d93ad0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 15:14:37 -0400 Subject: 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` --- src/compile/reductions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile/reductions.c') 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++)); -- cgit v1.2.3