//ww:error "assign-resolver: compound on aggregate field not wired (rule-7)" package main; type capture = struct { content: str, start: size, end: size }; type t = struct { pc: size, cap: capture }; fn addcap(ts: *[]t, i: size, src: capture) void = { (*ts)[i].cap += src; }; export fn main() i32 = { let ts: []t = []; let a: capture = capture { content = "", start = 0, end = 0 }; addcap(&ts, 0, a); return 0; };