mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 17:32:22 -07:00
Fix #883 - polymorphic specialization with target types of enumerated arrays
This commit is contained in:
+5
-1
@@ -1187,7 +1187,11 @@ bool check_type_specialization_to(CheckerContext *ctx, Type *specialization, Typ
|
||||
Type *t = base_type(type);
|
||||
Type *s = base_type(specialization);
|
||||
if (t->kind != s->kind) {
|
||||
return false;
|
||||
if (t->kind == Type_EnumeratedArray && s->kind == Type_Array) {
|
||||
// Might be okay, check later
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (is_type_untyped(t)) {
|
||||
|
||||
Reference in New Issue
Block a user