shithub: mc

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