We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test { var a: error{ A, B }!u64 = 0; var b = a catch |err| switch (err) { error.A => 0, else => unreachable, }; _ = b; }
0 gets emitted to AIR as comptime_int which then causes coerce to hit unreachable when a value of comptime_int is not comptime known.
0
comptime_int
coerce
Happens in dwarf.zig when calling std.debug.dumpCurrentStackTrace on linux but is easily avoided with a simple cast.
dwarf.zig
std.debug.dumpCurrentStackTrace
zig/lib/std/dwarf.zig
Line 825 in e5d4a69
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
0
gets emitted to AIR ascomptime_int
which then causescoerce
to hit unreachable when a value ofcomptime_int
is not comptime known.Happens in
dwarf.zig
when callingstd.debug.dumpCurrentStackTrace
on linux but is easily avoided with a simple cast.zig/lib/std/dwarf.zig
Line 825 in e5d4a69
The text was updated successfully, but these errors were encountered: