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