mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 20:48:04 +00:00
General specialization for polymorphic parameters
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user