mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Weaken let-bindings to if expressions
This commit is contained in:
parent
39b6a509eb
commit
04cf7e070d
2 changed files with 4 additions and 2 deletions
|
@ -3830,11 +3830,11 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| List { .. }
|
||||
| SingleQuote(_, _, _, _)
|
||||
| When { .. }
|
||||
| If { .. }
|
||||
=> return false,
|
||||
// TODO(weakening)
|
||||
| Var(_, _)
|
||||
| AbilityMember(_, _, _)
|
||||
| If { .. }
|
||||
| LetRec(_, _, _)
|
||||
| LetNonRec(_, _)
|
||||
| Call(_, _, _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue