General specialization for polymorphic parameters

This commit is contained in:
Ginger Bill
2017-07-18 18:05:41 +01:00
parent 5af0acc4af
commit d16aa79492
6 changed files with 193 additions and 99 deletions

View File

@@ -1121,7 +1121,7 @@ bool are_types_identical(Type *x, Type *y) {
switch (x->kind) {
case Type_Generic:
if (y->kind == Type_Generic) {
return true; // TODO(bill): Is this correct?
return are_types_identical(x->Generic.specialized, y->Generic.specialized);
}
break;