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/conditionals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compile/conditionals.c') diff --git a/src/compile/conditionals.c b/src/compile/conditionals.c index f9dfa751..7fcd6cc8 100644 --- a/src/compile/conditionals.c +++ b/src/compile/conditionals.c @@ -26,7 +26,7 @@ Text_t compile_condition(env_t *env, ast_t *ast) { code_err(ast, "This pointer will always be non-none, so it should not be " "used in a conditional."); } else { - code_err(ast, type_to_str(t), " values cannot be used for conditionals"); + code_err(ast, type_to_text(t), " values cannot be used for conditionals"); } return EMPTY_TEXT; } @@ -102,7 +102,7 @@ Text_t compile_if_expression(env_t *env, ast_t *ast) { "This `if var := ...:` declaration should be an " "optional " "type, not ", - type_to_str(condition_type)); + type_to_text(condition_type)); if (is_incomplete_type(condition_type)) code_err(condition, "This type is incomplete!"); -- cgit v1.2.3