Fixed type unification for templates! Next up is adding to the scope for .

This commit is contained in:
Nathan Braswell
2018-12-07 01:08:12 -05:00
parent 3e6dc2c5ee
commit 3f2d51ba75
3 changed files with 14 additions and 17 deletions

View File

@@ -71,7 +71,6 @@ fun shallow_equality(a: *type, b: *type):bool {
}
fun inst_temp_type(t: *binding<type>, replacements: ref map<*binding<type>, *binding<type>>): *binding<type> {
println("inst_temp_type " + to_string(t->bound_to))
match (*t->bound_to) {
type::_unknown() error("Unknown in temp type")
type::_obj(o) {