From 2ef22e86e0742d6dcf0e8c4796f126134e808086 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 12 May 2018 18:40:49 +0100 Subject: Make `any` use `typeid` rather than `^Type_Info` --- src/check_expr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_expr.cpp') 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] = {}; -- cgit v1.2.3