ref: a4f0ffa2a6755c7c0b8c1deb736d425540144ff7
dir: /test/genericchain.myr/
use std
generic fail = {val : @a
-> `std.Some val
}
generic try = {opt : std.option(@b)
match opt
| `std.Some v: -> v
| `std.None: std.die("Badness\n")
;;
}
const main = {
std.put("val = {}\n", try(fail(123)))
}