reject unspec poly

This commit is contained in:
kalsprite
2026-08-11 18:59:37 -07:00
parent 549bedcff9
commit fef29f0f42

View File

@@ -2824,6 +2824,10 @@ gb_internal bool is_type_comparable(Type *t) {
if (t->Struct.soa_kind != StructSoa_None) {
return false;
}
// an unspecialized polymorphic record has no values to compare
if (is_type_polymorphic_record_unspecialized(t)) {
return false;
}
if (t->Struct.is_raw_union) {
return is_type_simple_compare(t);
}