skip errors on polymorphic procs when in a proc group with other options

This commit is contained in:
A1029384756
2025-08-28 11:30:47 -04:00
parent f7936419cd
commit 3074146784
3 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -2085,7 +2085,9 @@ gb_internal Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_para
if (op.mode == Addressing_Constant) {
poly_const = op.value;
} else {
error(op.expr, "Expected a constant value for this polymorphic name parameter, got %s", expr_to_string(op.expr));
if (!ctx->in_proc_group) {
error(op.expr, "Expected a constant value for this polymorphic name parameter, got %s", expr_to_string(op.expr));
}
success = false;
}
}