mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update error message on invalid operator.
This commit is contained in:
@@ -3262,7 +3262,7 @@ static bool sema_analyse_attribute(SemaContext *context, ResolvedAttrData *attr_
|
||||
}
|
||||
return true;
|
||||
FAILED_OP_TYPE:
|
||||
RETURN_SEMA_ERROR(attr, "'operator' requires an operator type argument: '[]', '[]=', '&[]' or 'len'.");
|
||||
RETURN_SEMA_ERROR(attr, "'operator' requires an operator type argument. It should be any of the arithmetic and bit operators, equality operators, '[]', '[]=', '&[]' or 'len'.");
|
||||
}
|
||||
case ATTRIBUTE_ALIGN:
|
||||
if (!expr)
|
||||
|
||||
Reference in New Issue
Block a user