ref: 63780713d12f169f36b758d1b4cc7a1dc60f459e
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 = %i\n", try(fail(123)))
}