shithub: mc

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