@@ -3442,9 +3442,9 @@ def walk_Identifier(node: &parser::Node, state: &State) -> Value {
34423442 var val = node.svalue
34433443 if not val { return NO_VALUE }
34443444
3445- if val.tpe and val.tpe. kind == typechecking::TypeKind ::TYPE and val.value {
3445+ if val.kind == scope::ValueKind ::TYPE {
34463446 let loc = make_location(node, state)
3447- return change_value_to_type(val.value.value_tpe , loc, state)
3447+ return change_value_to_type(val.get_type() , loc, state)
34483448 }
34493449 if not val { return NO_VALUE }
34503450
@@ -9078,7 +9078,7 @@ def change_value_to_type(tpe: &typechecking::Type, loc: &Value, state: &State) -
90789078 let fun = declare_reflection_type_id_fun(state)
90799079 if not fun { return NO_VALUE }
90809080 let tmp = state.alloca(builtins::type_t(), loc)
9081- let res = state.call(fun.fdef.name, builtins::TypeT_ , [[ tpe = builtins::uint64_, kind = ValueKind::INT, i = tpe.id ] !Value], loc)
9081+ let res = state.call(fun.fdef.name, builtins::type_t() , [[ tpe = builtins::uint64_, kind = ValueKind::INT, i = tpe.id ] !Value], loc)
90829082 state.store(tmp, res, loc)
90839083 create_temporary(tmp, res, loc, state)
90849084 return res
0 commit comments