Update error message on invalid operator.

This commit is contained in:
Christoffer Lerno
2025-07-04 14:33:06 +02:00
parent f32afb70b8
commit 1b8355ff07

View File

@@ -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)