mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Crash resolving a method on Foo[2] when Foo is distinct #2042.
This commit is contained in:
@@ -1180,8 +1180,7 @@ static inline bool sema_analyse_signature(SemaContext *context, Signature *sig,
|
||||
if (method_parent && !vec_size(params))
|
||||
{
|
||||
RETURN_SEMA_ERROR(decl, "A method must start with an argument of the type "
|
||||
"it is a method of, e.g. 'fn void %s.%s(%s* self)', "
|
||||
"unless it is a 'construct' method,",
|
||||
"it is a method of, e.g. 'fn void %s.%s(%s* self)'.",
|
||||
type_to_error_string(method_parent->type), decl->name, type_to_error_string(method_parent->type));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user