shithub: mc

ref: 4ff9f95d84eb12bbbb0895669cc888eea1867bf5
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
}