mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-13 14:51:26 -07:00
Fix Issue with referencing a polymorphic struct in another package referencing itself #283
This commit is contained in:
@@ -2521,6 +2521,12 @@ Type *check_type_expr(CheckerContext *ctx, Ast *e, Type *named_type) {
|
||||
type->Named.base = t_invalid;
|
||||
}
|
||||
|
||||
if (is_type_polymorphic(type)) {
|
||||
type->flags |= TypeFlag_Polymorphic;
|
||||
} else if (is_type_polymorphic(type, true)) {
|
||||
type->flags |= TypeFlag_PolySpecialized;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (!ctx->allow_polymorphic_types && is_type_polymorphic(type)) {
|
||||
gbString str = type_to_string(type);
|
||||
|
||||
Reference in New Issue
Block a user