shithub: mc

ref: 4050a902f6278595dd253ec38ad7caf446ec31d8
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
}