shithub: mc

ref: 8dcd0721b321ee0ccb6ba88d3d8e833419bce0c5
dir: /test/neststruct.myr/

View raw version
type s1 = struct
	x : s2
;;

type s2 = struct
	a : int
	b : int
;;

const main = {
	var s1 : s1
	var s2 : s2

	s1.x.a = 1
	s1.x.b = 2
	s2 = s1.x

	-> s2.a + s2.b
}