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/tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile/tables.c') diff --git a/src/compile/tables.c b/src/compile/tables.c index dde8669a..b6efdecd 100644 --- a/src/compile/tables.c +++ b/src/compile/tables.c @@ -26,7 +26,7 @@ Text_t compile_typed_table(env_t *env, ast_t *ast, type_t *table_type) { type_t *value_t = Match(table_type, TableType)->value_type; if (value_t->tag == OptionalType) - code_err(ast, "Tables whose values are optional (", type_to_str(value_t), ") are not currently supported."); + code_err(ast, "Tables whose values are optional (", type_to_text(value_t), ") are not currently supported."); for (ast_list_t *entry = table->entries; entry; entry = entry->next) { if (entry->ast->tag == Comprehension) goto table_comprehension; -- cgit v1.2.3