Merge pull request #5117 from bogwi/bug/5024

Bug/5024
This commit is contained in:
gingerBill
2025-05-09 08:35:16 +01:00
committed by GitHub
8 changed files with 84 additions and 14 deletions

View File

@@ -2957,6 +2957,10 @@ gb_internal Type *default_type(Type *type) {
case Basic_UntypedString: return t_string;
case Basic_UntypedRune: return t_rune;
}
} else if (type->kind == Type_Generic) {
if (type->Generic.specialized) {
return default_type(type->Generic.specialized);
}
}
return type;
}