ref: 34f2230c4a505f3b94bc33ed07f0839fe66a0e93
dir: /test/generictype.myr/
use std
/* checks that parameterized types work. exits with 0. */
type option(@a) :: integral,numeric @a = union
`Some @a
`None
;;
const main = {
var v
v = `Some 123
match v
| `None: std.exit(1)
| `Some 123: std.exit(0)
| `Some _: std.die("Impossible match failure\n")
;;
std.exit(60)
}