mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
Attempt at fixing #3588
This commit is contained in:
@@ -776,6 +776,8 @@ gb_internal bool check_using_stmt_entity(CheckerContext *ctx, AstUsingStmt *us,
|
|||||||
bool is_ptr = is_type_pointer(e->type);
|
bool is_ptr = is_type_pointer(e->type);
|
||||||
Type *t = base_type(type_deref(e->type));
|
Type *t = base_type(type_deref(e->type));
|
||||||
if (t->kind == Type_Struct) {
|
if (t->kind == Type_Struct) {
|
||||||
|
wait_signal_until_available(&t->Struct.fields_wait_signal);
|
||||||
|
|
||||||
Scope *found = t->Struct.scope;
|
Scope *found = t->Struct.scope;
|
||||||
GB_ASSERT(found != nullptr);
|
GB_ASSERT(found != nullptr);
|
||||||
for (auto const &entry : found->elements) {
|
for (auto const &entry : found->elements) {
|
||||||
|
|||||||
Reference in New Issue
Block a user