mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 22:01:47 -04:00
Parapoly: Fix regression where proc group containing parapoly enumerated array specialization was marked as ambigious.
This commit is contained in:
1 parent
072c6bc227
commit
05d4c79dc5
1 file changed
+4
@@ -404,6 +404,10 @@ gb_internal bool poly_specialization_shape_mismatch(Type *s, Type *o, isize dept
|
||||
if (bs == nullptr || bo == nullptr || bs->kind == Type_Generic || bo->kind == Type_Generic) {
|
||||
return false;
|
||||
}
|
||||
if (bs->kind == Type_Array && bo->kind == Type_EnumeratedArray) {
|
||||
// `[$N]$E` can bind to an enumerated array; leave it to subst_unify
|
||||
return false;
|
||||
}
|
||||
if (bs->kind != bo->kind) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user