shithub: mc

ref: bbf152c2fe0b743e8a85ff208f6b19a3d631c78a
dir: /test/structasn.myr/

View raw version
/* tests block assignment of structs. exits with 42.*/
type pair = struct
	a : int
	b : int
;;

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