Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
artoy committed Sep 4, 2023
1 parent 3361880 commit 1797552
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/list/length.imp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ len(l) {
match l with
Nil -> return 0
| Cons h t -> {
let n = 1 + len(*t) in
return n
let t_der = *t in
let n = 1 + len(t_der) in {
alias(t_der = *t);
alias(l.Cons.2 = t);
return n
}
}
}

Expand Down

0 comments on commit 1797552

Please sign in to comment.