//ww:run-exit 67 package main; type capture = struct { content: str, start: size, end: size }; type result = []capture; fn mk() result = { let caps: []capture = []; append(caps, capture { content = "xy", start = 1, end = 3 }); append(caps, capture { content = "z", start = 4, end = 5 }); return caps; }; export fn main() i32 = { let m: result = mk(); if (len(m) != 2) { return 1; }; if (m[0].start != 1) { return 2; }; if (m[0].content.len != 2) { return 3; }; if (m[1].end != 5) { return 4; }; return 67; };