diff options
| author | gingerBill <bill@gingerbill.org> | 2022-11-21 10:25:34 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-11-21 10:25:34 +0000 |
| commit | 27d56d0da4c32fae3b52d8dcff65f111119b8d45 (patch) | |
| tree | d4b7ac581e72867fc4bdc784e2a90f8cf50de3a7 /src/check_type.cpp | |
| parent | c663566cd5778bfe6782835e897e212f91d5b1cb (diff) | |
Fix #2125
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); |