mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 18:32:12 +00:00
Fix String causes a crash when used in a polymorphic type #483
This commit is contained in:
@@ -1088,7 +1088,9 @@ Type *core_array_type(Type *t) {
|
||||
for (;;) {
|
||||
Type *prev = t;
|
||||
t = base_array_type(t);
|
||||
if (prev == t) break;
|
||||
if (t->kind != Type_Array && t->kind != Type_SimdVector) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user