aboutsummaryrefslogtreecommitdiff
path: root/typecheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'typecheck.c')
-rw-r--r--typecheck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/typecheck.c b/typecheck.c
index eefd92b5..ab64bbf3 100644
--- a/typecheck.c
+++ b/typecheck.c
@@ -303,8 +303,8 @@ void bind_statement(env_t *env, ast_t *statement)
code_err(field_ast->type, "This is a recursive struct that would be infinitely large. Maybe you meant to use an optional '@%T?' pointer instead?", type);
else
code_err(field_ast->type, "I'm still in the process of defining the fields of %T, so I don't know how to use it as a member."
- "\nTry using a @%T pointer for this field or moving the definition of %T before %T in the file.",
- field_t, field_t, field_t, type);
+ "\nTry using a @%T pointer for this field.",
+ field_t, field_t);
}
fields = new(arg_t, .name=field_ast->name, .type=field_t, .default_val=field_ast->value, .next=fields);
}
@@ -335,8 +335,8 @@ void bind_statement(env_t *env, ast_t *statement)
code_err(field_ast->type, "This is a recursive enum that would be infinitely large. Maybe you meant to use an optional '@%T?' pointer instead?", type);
else
code_err(field_ast->type, "I'm still in the process of defining the fields of %T, so I don't know how to use it as a member."
- "\nTry using a @%T pointer for this field or moving the definition of %T before %T in the file.",
- field_t, field_t, field_t, type);
+ "\nTry using a @%T pointer for this field.",
+ field_t, field_t);
}
fields = new(arg_t, .name=field_ast->name, .type=field_t, .default_val=field_ast->value, .next=fields);
}