shithub: mc

ref: 6a8e8597118325f5d43f065acbec97c2407c228f
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
}