shithub: mc

ref: 3cbdb83dbbc80b2c8a3458e5b1a1ae5d3080fb3b
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
	-> s.a
}