Make type_env a class.

This commit is contained in:
2020-09-15 19:10:36 -07:00
parent 0e3f16139d
commit ba418d357f
3 changed files with 37 additions and 30 deletions

View File

@@ -69,7 +69,7 @@ void compiler::translate() {
}
for(auto& defn : global_defs.defs_defn) {
auto& function = defn.second->into_global(global_scp);
function.body->env->parent->set_mangled_name(defn.first, function.name);
function.body->env->get_parent()->set_mangled_name(defn.first, function.name);
}
}