mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-18 19:10:18 +00:00
Make sure Box
is handled as an Apply
type
This commit is contained in:
parent
0b02ef2803
commit
12778762b2
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue