Switch to using type schemes and implement polymorphism in compiler series

This commit is contained in:
2020-03-24 23:04:44 -07:00
parent e07da0c9b1
commit de435d6c80
6 changed files with 93 additions and 9 deletions

View File

@@ -68,6 +68,7 @@ void typecheck_program(
for(auto& def_defnn_name : group->members) {
auto& def_defn = defs_defn.find(def_defnn_name)->second;
def_defn->typecheck(mgr);
env->generalize(def_defnn_name, mgr);
}
}