aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-12 18:40:49 +0100
committergingerBill <bill@gingerbill.org>2018-05-12 18:40:49 +0100
commit2ef22e86e0742d6dcf0e8c4796f126134e808086 (patch)
tree04e93cb32d73adaa3826bb46a33231219902b59f /src/check_expr.cpp
parent830f4f540fdbe30b22e93540249e61c1d1521f9b (diff)
Make `any` use `typeid` rather than `^Type_Info`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 66c26dda4..a2510f56b 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3428,7 +3428,7 @@ bool check_builtin_procedure(Checker *c, Operand *operand, AstNode *call, i32 id
}
case BuiltinProc_typeid_of: {
- // proc typeid_of(Type) -> ^Type_Info
+ // proc typeid_of(Type) -> typeid
if (c->context.scope->is_global) {
compiler_error("'typeid_of' Cannot be declared within a #shared_global_scope due to how the internals of the compiler works");
}
@@ -5701,7 +5701,7 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t
break; // NOTE(bill): No need to init
}
{ // Checker values
- Type *field_types[2] = {t_rawptr, t_type_info_ptr};
+ Type *field_types[2] = {t_rawptr, t_typeid};
isize field_count = 2;
if (cl->elems[0]->kind == AstNode_FieldValue) {
bool fields_visited[2] = {};