Weaken lists

This commit is contained in:
Ayaz Hafiz 2023-01-11 16:50:31 -06:00
parent caa3a6c6a8
commit b2cdddbdfb
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
7 changed files with 80 additions and 38 deletions

View file

@ -3826,10 +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(_) => return false,
| Str(_)
| List { .. }
=> return false,
// TODO(weakening)
| SingleQuote(_, _, _, _)
| List { .. }
| Var(_, _)
| AbilityMember(_, _, _)
| When { .. }