diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-04 12:07:27 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-04 12:07:27 -0500 |
commit | 39e5e4fbb83188eafde2c7c5822b33ff451fadd8 (patch) | |
tree | 08f8946c7ffbc0f9e2458f9c364a7a8f25451c6e /test.toc | |
parent | 9dc97819d38b1a63935a4909b246c88f960e0899 (diff) |
slightly improved infer error message; still needs work
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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; -}; |