mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
Make sure Box
is handled as an Apply
type
This commit is contained in:
parent
0b02ef2803
commit
12778762b2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user