ref: 348a8d66a5282e2738bdc44f7c12ac8900d8e31e
dir: /test/neststruct.myr/
use std
/* tests that nested structs work. should exit with 3 */
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
std.exit(s2.a + s2.b)
}