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/assertions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile/assertions.c') diff --git a/src/compile/assertions.c b/src/compile/assertions.c index 0f1d27b6..3ea6bf1e 100644 --- a/src/compile/assertions.c +++ b/src/compile/assertions.c @@ -43,7 +43,7 @@ Text_t compile_assertion(env_t *env, ast_t *ast) { } else if (can_compile_to_type(env, cmp.lhs, rhs_t)) { operand_t = rhs_t; } else { - code_err(ast, "I can't do comparisons between ", type_to_str(lhs_t), " and ", type_to_str(rhs_t)); + code_err(ast, "I can't do comparisons between ", type_to_text(lhs_t), " and ", type_to_text(rhs_t)); } ast_t *lhs_var = FakeAST(InlineCCode, .chunks = new (ast_list_t, .ast = FakeAST(TextLiteral, Text("_lhs"))), -- cgit v1.2.3