shithub: mc

ref: 0d7d70e5b1a4b5c7ae618d6d04fb30848b18c08f
dir: /test/struct1.myr/

View raw version
use std
/* 
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
	std.exit(s.a)
}