summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-04 12:07:27 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-04 12:07:27 -0500
commit39e5e4fbb83188eafde2c7c5822b33ff451fadd8 (patch)
tree08f8946c7ffbc0f9e2458f9c364a7a8f25451c6e /test.toc
parent9dc97819d38b1a63935a4909b246c88f960e0899 (diff)
slightly improved infer error message; still needs work
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc12
1 files changed, 1 insertions, 11 deletions
diff --git a/test.toc b/test.toc
index 1b02eed..eb51a96 100644
--- a/test.toc
+++ b/test.toc
@@ -1,8 +1,7 @@
-/*
#include "std/io.toc", io;
#include "std/arr.toc", arr;
-arr_sum ::= fn(n::=, t::=, a:arr.Arr(t)) t {
+arr_sum ::= fn(t::=, a:arr.Arr(t)) t {
total := 0 as t;
for x := a.data {
total += x;
@@ -21,12 +20,3 @@ main ::= fn() {
io.puti(arr.len(a));
io.puti(arr_sum(a));
};
-*/
-
-a ::= nms {
- x: int;
-};
-
-main ::= fn() {
- a.x;
-};