shithub: mc

ref: a7ae86f6a9874e7fd38c36fe31cef8e7d52268db
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
}