mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 19:42:31 +00:00
Weaken let-binding calls
This commit is contained in:
parent
d27a72de1f
commit
cb1373a3a4
3 changed files with 25 additions and 77 deletions
|
@ -3829,13 +3829,13 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
Str(_) | List { .. } | SingleQuote(_, _, _, _) | When { .. } | If { .. }
|
||||
| LetRec(_, _, _)
|
||||
| LetNonRec(_, _)
|
||||
| Call(_, _, _)
|
||||
=> {
|
||||
return false
|
||||
}
|
||||
// TODO(weakening)
|
||||
Var(_, _)
|
||||
| AbilityMember(_, _, _)
|
||||
| Call(_, _, _)
|
||||
| RunLowLevel { .. }
|
||||
| ForeignCall { .. }
|
||||
| Expr::Record { .. }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue