//ww:compile // slice-typed field pseudo-read (.cap) through an INFERRED alloc // pointer — the slice sibling of the str-arm fold. package main; type box = struct { sl: []int, n: int }; export fn main() i32 = { let s: []int = alloc([], 4)!; let p = alloc(box { sl = s, n = 5 })!; if (p.sl.cap != 4) { return 1; }; if (p.n != 5) { return 2; }; return 0; };