mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Format
This commit is contained in:
parent
04cf7e070d
commit
2e41b59af4
1 changed files with 4 additions and 7 deletions
|
@ -3826,14 +3826,11 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
Num(..) | Int(..) | Float(..) => return true,
|
||||
Closure(_) => return true,
|
||||
OpaqueRef { argument, .. } => expr = &argument.1.value,
|
||||
| Str(_)
|
||||
| List { .. }
|
||||
| SingleQuote(_, _, _, _)
|
||||
| When { .. }
|
||||
| If { .. }
|
||||
=> return false,
|
||||
Str(_) | List { .. } | SingleQuote(_, _, _, _) | When { .. } | If { .. } => {
|
||||
return false
|
||||
}
|
||||
// TODO(weakening)
|
||||
| Var(_, _)
|
||||
Var(_, _)
|
||||
| AbilityMember(_, _, _)
|
||||
| LetRec(_, _, _)
|
||||
| LetNonRec(_, _)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue