shithub: mc

ref: da4e9c9216aeb8455dfd972956e29942fd9d4690
dir: /test/structret.myr/

View raw version
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
}