ref: 5a4946bb577b755df6ddb543bccd0573de7cf2bd
dir: /test/genericmake.myr/
use std
type t(@ty) = union
`Some @ty
`None
;;
const make = {v
-> `Some v
}
const main = {
var x
x = make(123)
match x
| `Some v: std.put("val = {}\n", v)
| `None: std.die("Unreachable\n")
;;
}