//ww:compile // nested-struct chained read + store through an INFERRED alloc pointer: // the checker-synthesized N_TPTR carries the struct BODY node, and the // dotchainresolve root gate must still fold (byte-id with the annotated // twin and with cstage's type-keyed fold). package main; type inner = struct { a: int, b: int }; type outer = struct { i: inner, n: int }; export fn main() i32 = { let p = alloc(outer { i = inner { a = 1, b = 2 }, n = 3 })!; if (p.i.b != 2) { return 1; }; p.i.b = 9; if (p.i.b != 9) { return 2; }; if (p.n != 3) { return 3; }; return 0; };