From a40f275b0cf2355986107ebea3fe5052d0f52222 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 27 Apr 2026 09:23:04 +0100 Subject: [PATCH] Check to see if a normal type is being used in a `typeid` context --- src/check_expr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 195e0de7a..24daf7e35 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -12457,6 +12457,9 @@ gb_internal void check_multi_expr_with_type_hint(CheckerContext *c, Operand *o, error_operand_no_value(o); break; case Addressing_Type: + if (type_hint != nullptr && is_type_typeid(type_hint)) { + break; + } error_operand_not_expression(o); break; }