mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
Allow unions which are comparable to also be valid map keys (i.e. hashable)
This commit is contained in:
@@ -1544,9 +1544,6 @@ bool is_type_valid_for_keys(Type *t) {
|
||||
if (is_type_untyped(t)) {
|
||||
return false;
|
||||
}
|
||||
if (t->kind == Type_Union) {
|
||||
return false;
|
||||
}
|
||||
return is_type_comparable(t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user