mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Debug missing lambda names
This commit is contained in:
parent
ccd68b70e1
commit
38920b98fa
1 changed files with 6 additions and 3 deletions
|
@ -1650,9 +1650,12 @@ impl<'a> LambdaSet<'a> {
|
|||
lambda_name: LambdaName<'a>,
|
||||
argument_layouts: &'a [Layout<'a>],
|
||||
) -> &'a [Layout<'a>] {
|
||||
debug_assert!(self
|
||||
.set
|
||||
.contains(&(lambda_name.name, lambda_name.captures_niche.0)));
|
||||
debug_assert!(
|
||||
self.set
|
||||
.contains(&(lambda_name.name, lambda_name.captures_niche.0)),
|
||||
"{:?}",
|
||||
(self, lambda_name)
|
||||
);
|
||||
// If we don't capture, there is nothing to extend.
|
||||
if lambda_name.captures_niche.0.is_empty() {
|
||||
argument_layouts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue