mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Make structs with the same fields but different tags different types
Fixes #2105
This commit is contained in:
@@ -2705,6 +2705,9 @@ bool are_types_identical_internal(Type *x, Type *y, bool check_tuple_names) {
|
|||||||
if (xf->token.string != yf->token.string) {
|
if (xf->token.string != yf->token.string) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (x->Struct.tags[i] != y->Struct.tags[i]) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
u64 xf_flags = (xf->flags&EntityFlags_IsSubtype);
|
u64 xf_flags = (xf->flags&EntityFlags_IsSubtype);
|
||||||
u64 yf_flags = (yf->flags&EntityFlags_IsSubtype);
|
u64 yf_flags = (yf->flags&EntityFlags_IsSubtype);
|
||||||
if (xf_flags != yf_flags) {
|
if (xf_flags != yf_flags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user