ref: 0b8d09bb5198fb4d60d88e33b46862aec69f6e27
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)))
}