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