shithub: mc

ref: 693647efbb86d842a9edc6e15c8d2420ff14b01c
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
}