shithub: mc

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