diff options
Diffstat (limited to 'src/compile/assignments.c')
| -rw-r--r-- | src/compile/assignments.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/assignments.c b/src/compile/assignments.c index 6848e298..921b5320 100644 --- a/src/compile/assignments.c +++ b/src/compile/assignments.c @@ -142,9 +142,9 @@ Text_t compile_lvalue(env_t *env, ast_t *ast) { } else if (ast->tag == FieldAccess) { ast_t *subject = Match(ast, FieldAccess)->fielded; type_t *t = get_type(env, subject); - code_err(subject, "This is an immutable ", type_to_str(t), " value, you can't assign to its fields"); + code_err(subject, "This is an immutable ", type_to_text(t), " value, you can't assign to its fields"); } else { - code_err(ast, "This is a value of type ", type_to_str(get_type(env, ast)), + code_err(ast, "This is a value of type ", type_to_text(get_type(env, ast)), " and can't be used as an assignment target"); } } |
