Fix #883 - polymorphic specialization with target types of enumerated arrays

This commit is contained in:
gingerBill
2021-03-27 15:22:05 +00:00
parent e21d716720
commit 1e587d6635
2 changed files with 65 additions and 1 deletions
+5 -1
View File
@@ -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)) {