Fix record coercion with compatible types

Fixes #4722
This commit is contained in:
Evan Typanski 2025-08-04 15:47:09 -04:00
parent 56325d1412
commit 006bef71b5
5 changed files with 70 additions and 0 deletions

View file

@ -2170,6 +2170,9 @@ bool record_promotion_compatible(const RecordType* super_rec, const RecordType*
if ( same_type(sub_field_type, super_field_type) )
continue;
if ( BothArithmetic(sub_field_type->Tag(), super_field_type->Tag()) )
continue;
if ( sub_field_type->Tag() != TYPE_RECORD )
return false;