mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 04:42:15 -04:00
General specialization for polymorphic parameters
This commit is contained in:
1 parent
5af0acc4af
commit
d16aa79492
6 files changed
+193
-99
No files matched your search
+1
-1
@@ -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