aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-05 11:54:21 +0000
committergingerBill <bill@gingerbill.org>2023-01-05 11:54:21 +0000
commit1517f1d7793c8985664600a820e3434dfdf83810 (patch)
tree30b50588d6328517658ea15438551890113febb4 /src/check_expr.cpp
parentbbb2164e38e3930cb79c5e7bc61b421e38131361 (diff)
Add uncomment `add_type_info_type` calls for type assertions
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index e9e61486e..e0519d26b 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -8777,8 +8777,8 @@ gb_internal ExprKind check_type_assertion(CheckerContext *c, Operand *o, Ast *no
return kind;
}
- // add_type_info_type(c, o->type);
- // add_type_info_type(c, bsrc->Union.variants[0]);
+ add_type_info_type(c, o->type);
+ add_type_info_type(c, bsrc->Union.variants[0]);
o->type = bsrc->Union.variants[0];
o->mode = Addressing_OptionalOk;
@@ -8810,8 +8810,8 @@ gb_internal ExprKind check_type_assertion(CheckerContext *c, Operand *o, Ast *no
return kind;
}
- // add_type_info_type(c, o->type);
- // add_type_info_type(c, t);
+ add_type_info_type(c, o->type);
+ add_type_info_type(c, t);
o->type = t;
o->mode = Addressing_OptionalOk;