distinct type aliasing
This commit is contained in:
@@ -1320,6 +1320,11 @@ canonical_type :: proc(
|
||||
mapping[index] = value if !types.is_valid(resolved) else resolved
|
||||
return mapping[index]
|
||||
}
|
||||
if item.kind == .Distinct {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user