aboutsummaryrefslogtreecommitdiff
path: root/test/functions.tm
blob: 426c33b199a984c11a04e621544961b25977f966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
func add(x:Int, y:Int)->Int:
	return x + y

func cached_heap(x:Int; cached)->@Int:
	return @x

func main():
	>> add(3, 5)
	= 8

	>> cached_heap(1) == cached_heap(1)
	= yes
	>> cached_heap(1) == cached_heap(2)
	= no