aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorCiD- <jkercher43@gmail.com>2022-03-14 13:36:22 -0400
committerCiD- <jkercher43@gmail.com>2022-03-14 13:36:22 -0400
commit1f4e5e919f94b53ea2ed9292b4a9a33488026fcf (patch)
treea073ea401866d4d4a1b83ea819de9c2c2e3893e2 /src/check_expr.cpp
parentc293e88f2e31bfed896ddba701bdc2629497005a (diff)
parent1d147ba99339afbef47bf689a0e0d7591a33c633 (diff)
merge upstream/master
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 614da2368..577f3b07c 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -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;
}