diff options
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 4d94fce6c..0cdc3a930 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1629,6 +1629,8 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is // This is just to add the error message to determine_type_from_polymorphic which // depends on valid position information op.expr = _params; + op.mode = Addressing_Invalid; + op.type = t_invalid; } if (is_type_polymorphic_type) { type = determine_type_from_polymorphic(ctx, type, op); |