summaryrefslogtreecommitdiff
path: root/tests/types.toc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/types.toc')
-rw-r--r--tests/types.toc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/types.toc b/tests/types.toc
index 7262637..5117906 100644
--- a/tests/types.toc
+++ b/tests/types.toc
@@ -25,7 +25,7 @@ main ::= fn() {
slice_to_ll ::= fn(t::=, slice: []t) use ll: LinkedList(t) {
head = slice[0];
if slice.len == 1 {
- tail = 0 as &LinkedList(t);
+ tail = null;
} else {
tail = new(LinkedList(t));
*tail = slice_to_ll(slice[1:]);