aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-08-29 13:53:55 +0100
committerGitHub <noreply@github.com>2025-08-29 13:53:55 +0100
commitf926c1861f5346d23b1b60f6b5970f598d3584b3 (patch)
treee6f108df76b4d2cad6dfd7fc3b458f6ad2f5a420 /src/check_type.cpp
parentf7936419cd5a022d6bb2100274832df5e7f42eee (diff)
parent3074146784e253bd536b494aca2d7ce987ead20d (diff)
Merge pull request #5627 from A1029384756/master
skip errors on polymorphic procs when in a proc group with other options
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index a427a1927..a104d6fc0 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -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;
}
}