Make sure Box is handled as an Apply type

This commit is contained in:
Ayaz Hafiz 2022-10-10 13:35:39 -05:00
parent 0b02ef2803
commit 12778762b2
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -1027,7 +1027,11 @@ impl DerivableVisitor for DeriveEq {
fn visit_apply(var: Variable, symbol: Symbol) -> Result<Descend, NotDerivable> {
if matches!(
symbol,
Symbol::LIST_LIST | Symbol::SET_SET | Symbol::DICT_DICT | Symbol::STR_STR,
Symbol::LIST_LIST
| Symbol::SET_SET
| Symbol::DICT_DICT
| Symbol::STR_STR
| Symbol::BOX_BOX_TYPE,
) {
Ok(Descend(true))
} else {