mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Fix #4330
This commit is contained in:
@@ -232,6 +232,10 @@ gb_internal bool check_override_as_type_due_to_aliasing(CheckerContext *ctx, Ent
|
|||||||
// until there is a proper delaying system to try declaration again if they
|
// until there is a proper delaying system to try declaration again if they
|
||||||
// have failed.
|
// have failed.
|
||||||
|
|
||||||
|
if (e->type != nullptr && is_type_typed(e->type)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
e->kind = Entity_TypeName;
|
e->kind = Entity_TypeName;
|
||||||
check_type_decl(ctx, e, init, named_type);
|
check_type_decl(ctx, e, init, named_type);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user