Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
catch_on_undefined_value.zig
pretty
plain
permalink
blame
history
•
8 lines
•
161 B
1
comptime {
2
const a: anyerror!bool = undefined;
3
if (a catch false) {}
4
}
5
6
// error
7
//
8
// :3:11: error: use of undefined value here causes illegal behavior