ref: 4e656a4f039b9230c820f12d3b1e4a5c8e55cf47
dir: /test/generictype.myr/
use std
/* checks that parameterized types work. exits with 0. */
type option(@a) = union
`Some @a::(integral,numeric)
`None
;;
const main = {
var v
v = `Some 123
match v
| `None: std.exit(1)
| `Some 123: std.exit(0)
| `Some _: std.die("Impossible match failure\n")
;;
std.exit(60)
}