From 27d56d0da4c32fae3b52d8dcff65f111119b8d45 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 21 Nov 2022 10:25:34 +0000 Subject: Fix #2125 --- src/check_type.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/check_type.cpp') 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); -- cgit v1.2.3