mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Commit rest of code for -disallow-rtti
This commit is contained in:
1 parent
01162e08b5
commit
278e239973
11 files changed
+95
-19
No files matched your search
@@ -9352,6 +9352,8 @@ ExprKind check_expr_base(CheckerContext *c, Operand *o, Ast *node, Type *type_hi
|
||||
if (o->type != nullptr && is_type_untyped(o->type)) {
|
||||
add_untyped(c, node, o->mode, o->type, o->value);
|
||||
}
|
||||
check_rtti_type_disallowed(node, o->type, "An expression is using a type, %s, which has been disallowed");
|
||||
|
||||
add_type_and_value(c->info, node, o->mode, o->type, o->value);
|
||||
return kind;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user