//ww:run-exit 9 package main; type box = struct { t: (int | bool), n: int }; fn pick(h: *box) i32 = { match (h.t) { case let n: int => return n: i32; case bool => return 1; }; }; fn main() i32 = { let b: box = box { t = 9, n = 5 }; return pick(&b); };