shithub: mc

ref: 23f5bba1d64f994a83f644b07a852b303d3e9109
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
}