shithub: mc

ref: f16eddc8b5b4c20a4aef509d3b9f69ef83b49b4c
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
}