1 2 3 4 5 6 7 8 9 10 11 12 13
use std type t(@a) = union `Foo @a `Bar ;; const main = { match `Foo 123 | `Foo a: std.exit(0xf) | `Bar: std.exit(0x0) ;; }