shithub: mc

ref: 84dc4bb3cb9d70c182341918e91aa5ffc0af2e15
dir: /test/structptr.myr/

View raw version
type pair = struct
	a : int
	b : int
;;

const frob = {s
	s.a = 12
	s.b = 30
}

const main = {
	var s : pair
	frob(&s)
	-> s.a + s.b
}