shithub: mc

ref: 34c3e5b0116a5283433c9cf6c3484ee6967e3030
dir: /test/struct1.myr/

View raw version
/* 
make sure assigning to a 1-element struct works; exit status should be 12
*/
type val = struct
	a : int
;;

const main = {
	var s : val
	s.a = 12
	-> s.a
}