diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/functions.tm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functions.tm b/test/functions.tm new file mode 100644 index 00000000..487e9467 --- /dev/null +++ b/test/functions.tm @@ -0,0 +1,14 @@ +func add(x:Int, y:Int)->Int + return x + y + +>> add(3, 5) += 8 + +func cached_heap(x:Int; cached)->@Int + return @x + +>> cached_heap(1) == cached_heap(1) += yes +>> cached_heap(1) == cached_heap(2) += no + |
