shithub: mc

ref: 0b419bf55a006dcee16bd9f50a4f8ec807437ce4
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
}