From 212dfa44ae3b99b6953b2096fa27406ca4bba303 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Mar 2024 21:49:52 -0400 Subject: Fix error message --- typecheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'typecheck.c') diff --git a/typecheck.c b/typecheck.c index 74c53fbf..6c26dc43 100644 --- a/typecheck.c +++ b/typecheck.c @@ -783,7 +783,7 @@ type_t *get_type(env_t *env, ast_t *ast) unhandled = unhandled ? CORD_all(unhandled, ", ", m->name) : m->name; } if (unhandled) - code_err(ast, "This 'while' statement doesn't handle the tag(s): %s", CORD_to_const_char_star(unhandled)); + code_err(ast, "This 'when' statement doesn't handle the tag(s): %s", CORD_to_const_char_star(unhandled)); // return overall_t; return Type(VoidType); } -- cgit v1.2.3