Multimorphic lambdas capture another lambda

This commit is contained in:
Ayaz Hafiz 2022-06-28 18:28:15 -04:00 committed by ayazhafiz
parent b69d538ea0
commit 28c1cf46a3
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED
5 changed files with 175 additions and 63 deletions

View file

@ -986,7 +986,9 @@ impl<'a> LambdaSet<'a> {
) -> ClosureRepresentation<'a> {
debug_assert!(
self.set.iter().any(|(s, _)| *s == lambda_name),
"lambda not in set"
"lambda {:?} not in set {:#?}",
lambda_name,
self.set,
);
let comparator =