ref: a2ef6bfcd8de0ae9f7f2df2fcdd692bde6ea422c
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")
;;
}