mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 13:18:14 +00:00
Check to see if a normal type is being used in a typeid context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user