mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 19:42:31 +00:00
Weaken records in let-bindings
This change also means we must update the interface of `Dict.empty` and `Set.empty` from ``` Dict.empty : Dict k v ``` to ``` Dict.empty : {} -> Dict k v ```
This commit is contained in:
parent
61ac9bf9b2
commit
b8712bcb30
9 changed files with 70 additions and 75 deletions
|
@ -3833,13 +3833,13 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
|
|||
| RunLowLevel { .. }
|
||||
| ForeignCall { .. }
|
||||
| EmptyRecord
|
||||
| Expr::Record { .. }
|
||||
=> {
|
||||
return false
|
||||
}
|
||||
// TODO(weakening)
|
||||
Var(_, _)
|
||||
| AbilityMember(_, _, _)
|
||||
| Expr::Record { .. }
|
||||
| Crash { .. }
|
||||
| Access { .. }
|
||||
| Accessor(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue