shithub: mc

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

View raw version
use std
/* 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
}