summaryrefslogtreecommitdiff
path: root/test/structret.myr
blob: d00582f8952a23161be2ce17ee34ac1fd9b63d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
type pair = struct
	a : int
	b : int
;;

const f = {
	var s

	s.a = 12
	s.b = 30
	-> s
}

const main = {
	var s : pair

	s = f()
	-> s.a + s.b
}