| 1 | export fn example() void { |
| 2 | comptime foo() catch |err| switch (err) {}; |
| 3 | } |
| 4 | var x: ?error{} = null; |
| 5 | fn foo() !void { |
| 6 | return x.?; |
| 7 | } |
| 8 | // error |
| 9 | // |
| 10 | // :6:13: error: unable to unwrap null |
| 11 | // :2:17: note: called at comptime here |