shithub: mc

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