shithub: mc

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