shithub: mc

ref: 682c4ce6114cb44e2ad95a75269585f6e1da8150
dir: /test/struct.myr/

View raw version
use std
/* test reading and writing to struct members. exits with 42. */
type pair = struct
	a : int
	b : int
;;

const main = {
	var s : pair
	s.a = 12
	s.b = 30
	-> s.a + s.b
}