shithub: mc

ref: 446f1577da01b4c8a25da882739050832f0698b1
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
}