mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
make it work
This commit is contained in:
parent
5e1077bf3e
commit
e274976c6a
14 changed files with 158 additions and 26 deletions
|
@ -229,6 +229,10 @@ fn consume_expr(m: &VarMap, e: &Expr<'_>) -> bool {
|
|||
Some(info) => info.consume,
|
||||
None => true,
|
||||
},
|
||||
Expr::CoerceToTagId { structure: x, .. } => match m.get(x) {
|
||||
Some(info) => info.consume,
|
||||
None => true,
|
||||
},
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue