diff options
| author | A1029384756 <hayden.gray104@gmail.com> | 2025-08-28 11:30:47 -0400 |
|---|---|---|
| committer | A1029384756 <hayden.gray104@gmail.com> | 2025-08-28 11:30:47 -0400 |
| commit | 3074146784e253bd536b494aca2d7ce987ead20d (patch) | |
| tree | e6f108df76b4d2cad6dfd7fc3b458f6ad2f5a420 /src/check_type.cpp | |
| parent | f7936419cd5a022d6bb2100274832df5e7f42eee (diff) | |
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.cpp | 4 |
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; } } |