Weaken ability members behind let-bindings

This commit is contained in:
Ayaz Hafiz 2023-01-12 15:05:54 -06:00
parent 48049ed956
commit c3f1646274
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 44 additions and 7 deletions

View file

@ -3860,9 +3860,10 @@ fn is_generalizable_expr(mut expr: &Expr) -> bool {
| TypedHole(_)
| RuntimeError(..)
| ZeroArgumentTag { .. }
| Tag { .. } => return false,
| Tag { .. }
| AbilityMember(_, _, _) => return false,
// TODO(weakening)
Var(_, _) | AbilityMember(_, _, _) => return true,
Var(_, _) => return true,
}
}
}