summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc10
1 files changed, 8 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index ddd4c04..02811e2 100644
--- a/test.toc
+++ b/test.toc
@@ -9,8 +9,14 @@ puti @= fn(x: int) {
// ");
// };
+add @= fn(x: int, y @int) int {
+ x + y
+};
+
main @= fn() {
- b @= fn(x: int) int { 2*x };
- puti(b(10));
+ puti(add(3, 10));
+ x @= add(3, 7);
+ puti(add(4, x));
+ puti(add(3, 5));
};