ref: 71e8fc4ea9aec9f7cbb15424d6f612d636e3656b
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
| `std.Some v: std.put("val = %i\n", v)
| `std.None: std.die("Unreachable\n")
;;
}