shithub: mc

ref: 89e3217a0a604f94c68b9993a72166f6aede0b47
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
}