This commit is contained in:
2026-06-23 17:22:41 +02:00
parent f16f352d1e
commit 2f68fc966a
16 changed files with 809 additions and 38 deletions
+5
View File
@@ -1325,6 +1325,11 @@ canonical_type :: proc(
module.type_store.nodes[index].child = canonical_type(module, item.child, mapping, visiting)
return value
}
if item.kind == .Enum {
mapping[index] = value
module.type_store.nodes[index].child = canonical_type(module, item.child, mapping, visiting)
return value
}
if item.kind == .Struct || item.kind == .Union {
mapping[index] = value
fields := types.fields_for(&module.type_store, value)