Skip to content

Commit

Permalink
test: update closure rewrite test output
Browse files Browse the repository at this point in the history
  • Loading branch information
alehander92 committed Jul 28, 2023
1 parent 4a0c2ee commit 3f5b6d7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crates/noirc_frontend/src/monomorphization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1353,11 +1353,14 @@ mod tests {
"#;

let expected_rewrite = r#"fn main$f0() -> Field {
let closure$2 = {
let env$1 = ();
(env$l1, lambda$f1)
let closure$3 = {
let closure_variable$2 = {
let env$1 = ();
(env$l1, lambda$f1)
};
closure_variable$l2
};
closure$l2.1(closure$l2.0, 0)
closure$l3.1(closure$l3.0, 0)
}
fn lambda$f1(mut env$l1: (), x$l0: Field) -> Field {
x$l0
Expand Down

0 comments on commit 3f5b6d7

Please sign in to comment.