Remove the parent method from type_env.

This commit is contained in:
2020-09-17 22:35:12 -07:00
parent 8a352ed3ea
commit 7226d66f67
3 changed files with 1 additions and 6 deletions

View File

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