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