mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 02:04:06 +00:00
Don't add type info for incomplete structs.
This commit is contained in:
@@ -2028,6 +2028,8 @@ gb_internal void add_type_info_type_internal(CheckerContext *c, Type *t) {
|
||||
break;
|
||||
|
||||
case Type_Struct:
|
||||
if (bt->Struct.fields_wait_signal.futex.load() == 0)
|
||||
return;
|
||||
if (bt->Struct.scope != nullptr) {
|
||||
for (auto const &entry : bt->Struct.scope->elements) {
|
||||
Entity *e = entry.value;
|
||||
|
||||
BIN
tests/core/test_core_time
Executable file
BIN
tests/core/test_core_time
Executable file
Binary file not shown.
Reference in New Issue
Block a user