ref: 3d20a6d5e0c554e9f3d0d3f504f4dfb28901ebb7
dir: /test/matchunion.myr/
use std
/* checks that union matching works, at least on the key.
exits with 84. */
type u = union
`Foo
`Bar
`Baz
`Quux
;;
const main = {
var v
v = `Foo
match v
`Bar:
-> 42
;;
`Baz:
-> 81
;;
`Foo:
-> 84
;;
`Quux:
-> 123
;;
;;
}