mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Weaken variables bound to when expressions
This commit is contained in:
parent
a2f04d1fa3
commit
9462f44bb7
2 changed files with 7 additions and 5 deletions
|
@ -3829,11 +3829,11 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| Str(_)
|
||||
| List { .. }
|
||||
| SingleQuote(_, _, _, _)
|
||||
| When { .. }
|
||||
=> return false,
|
||||
// TODO(weakening)
|
||||
| Var(_, _)
|
||||
| AbilityMember(_, _, _)
|
||||
| When { .. }
|
||||
| If { .. }
|
||||
| LetRec(_, _, _)
|
||||
| LetNonRec(_, _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue