diff --git a/src/test/list/length.imp b/src/test/list/length.imp index bfb53e87..4fe4cb91 100644 --- a/src/test/list/length.imp +++ b/src/test/list/length.imp @@ -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 + } } }