From 1b8355ff07a89e2c14166111c7191c5fd3e20d6b Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 4 Jul 2025 14:33:06 +0200 Subject: [PATCH] Update error message on invalid operator. --- src/compiler/sema_decls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sema_decls.c b/src/compiler/sema_decls.c index e4388bb04..ae218449c 100755 --- a/src/compiler/sema_decls.c +++ b/src/compiler/sema_decls.c @@ -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)