mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Weaken tags behind let bindings
This commit is contained in:
parent
52c2f3a054
commit
48049ed956
3 changed files with 9 additions and 8 deletions
|
@ -3859,9 +3859,10 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| Dbg { .. }
|
||||
| TypedHole(_)
|
||||
| RuntimeError(..)
|
||||
| ZeroArgumentTag { .. } => return false,
|
||||
| ZeroArgumentTag { .. }
|
||||
| Tag { .. } => return false,
|
||||
// TODO(weakening)
|
||||
Var(_, _) | AbilityMember(_, _, _) | Tag { .. } => return true,
|
||||
Var(_, _) | AbilityMember(_, _, _) => return true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue