ref: 63d9419c6b72ef4ba813b0e8c6f234b9ab843d27
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)))
}