aboutsummaryrefslogtreecommitdiff
path: root/src/compile/promotions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/promotions.c')
-rw-r--r--src/compile/promotions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/promotions.c b/src/compile/promotions.c
index 26f3af9f..3441632e 100644
--- a/src/compile/promotions.c
+++ b/src/compile/promotions.c
@@ -191,5 +191,5 @@ Text_t compile_to_type(env_t *env, ast_t *ast, type_t *t) {
return Texts(constructor->code, "(", compile_arguments(env, ast, arg_spec, constructor_args), ")");
}
- code_err(ast, "I expected a ", type_to_str(t), " here, but this is a ", type_to_str(actual));
+ code_err(ast, "I expected a ", type_to_text(t), " here, but this is a ", type_to_text(actual));
}