ref: 49f6758a734dc98ed7764d2f2ff8dfb77d4c75b0
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 = {}\n", v)
| `std.None: std.die("Unreachable\n")
;;
}