shithub: mc

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