shithub: mc

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