shithub: mc

ref: 5f8ce4d91c5ae77dad2eb17b7a005723b2b8a90f
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
}