Fix #type not being handled as in normal expressions

This commit is contained in:
gingerBill
2026-01-11 18:54:46 +00:00
parent 393fec2f66
commit 5938c783a6

View File

@@ -11565,6 +11565,15 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
return kind;
case_end;
case_ast_node(ht, HelperType, node);
Type *type = check_type(c, ht->type);
if (type != nullptr && type != t_invalid) {
o->mode = Addressing_Type;
o->type = type;
}
return kind;
case_end;
case_ast_node(i, Implicit, node);
switch (i->kind) {
case Token_context: