Weaken variables bound to when expressions

This commit is contained in:
Ayaz Hafiz 2023-01-11 17:10:59 -06:00
parent a2f04d1fa3
commit 9462f44bb7
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 7 additions and 5 deletions

View file

@ -3829,11 +3829,11 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
| Str(_)
| List { .. }
| SingleQuote(_, _, _, _)
| When { .. }
=> return false,
// TODO(weakening)
| Var(_, _)
| AbilityMember(_, _, _)
| When { .. }
| If { .. }
| LetRec(_, _, _)
| LetNonRec(_, _)