Weaken tags behind let bindings

This commit is contained in:
Ayaz Hafiz 2023-01-12 14:58:03 -06:00
parent 52c2f3a054
commit 48049ed956
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 9 additions and 8 deletions

View file

@ -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,
}
}
}