Last issue from acceptance tests

This commit is contained in:
microproofs 2024-10-31 01:37:03 -04:00
parent 27bf40260e
commit a4aaf4d2d7
No known key found for this signature in database
GPG Key ID: 14F93C84DE6AFD17
1 changed files with 13 additions and 7 deletions

View File

@ -1070,13 +1070,19 @@ impl<'a, 'b> TreeGen<'a, 'b> {
.collect_vec(),
),
Pattern::Assign { name, pattern, .. } => (
vec![Assigned {
path: path.clone(),
assigned: name.clone(),
}],
self.map_pattern_to_row(pattern, subject_tipo, path).1,
),
Pattern::Assign { name, pattern, .. } => {
let (mut assigns, patts) =
self.map_pattern_to_row(pattern, subject_tipo, path.clone());
assigns.insert(
0,
Assigned {
path,
assigned: name.clone(),
},
);
(assigns, patts)
}
Pattern::Int { .. }
| Pattern::ByteArray { .. }
| Pattern::Discard { .. }