diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 15:14:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 15:14:37 -0400 |
| commit | f5612e38183dc20d18f207f8ab055574a4d93ad0 (patch) | |
| tree | c2caf5a0311b6d9fd0fbd4c08493dac5981088be /src/compile/assignments.c | |
| parent | 7f6683269ce689a83b9c6e1fae15e0cc60351095 (diff) | |
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`
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"); } } |
