//ww:error "arithmetic on non-numeric type" 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; };