summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-01 16:19:03 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-01 16:19:03 -0400
commitc21fa1738ea08455f906deba2762cdbd591b29ad (patch)
treec7ca6e2e47505144d0470d6080412707b3ea5258 /tests
parent5277f2222417b5366e1ef6e0871c90e3946b1742 (diff)
null
Diffstat (limited to 'tests')
-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:]);