mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 22:32:13 -04:00
Check to see if a normal type is being used in a typeid context
This commit is contained in:
1 parent
01734dfa9b
commit
a40f275b0c
1 file changed
+3
@@ -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