shithub: mc

ref: b8b1b240c2300954903272a543d9146b59d4f997
dir: /test/struct.myr/

View raw version
/* test reading and writing to struct members. exits with 42. */
type pair = struct
	a : int
	b : int
;;

const main = {
	var s : pair
	s.a = 12
	s.b = 30
	-> s.a + s.b
}