You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 19206 panic: parameter count mismatch calling builtin fn, expected 0, found 3
Unable to dump stack trace: debug info stripped
fish: Job 1, 'nix run 'github:mitchellh/zig-o…' terminated by signal SIGABRT (Abort)
Expected Behavior
0.13.0 prints an error and doesn't crash:
/nix/store/s3nq31mhm8gxkq691p5w6q61ficw1hvr-zig-0.13.0/lib/std/builtin.zig:751:9: error: expected type 'fn ([]const u8, ?*builtin.StackTrace, ?usize) noreturn', found 'fn () noreturn'
root.panic
~~~~^~~~~~
/nix/store/s3nq31mhm8gxkq691p5w6q61ficw1hvr-zig-0.13.0/lib/std/builtin.zig:751:9: note: function with 0 parameters cannot cast into a function with 3 parameters
The text was updated successfully, but these errors were encountered:
@mark-rushakoff I think we have a misunderstanding. I'm pretty sure using the @panic builtin should cause a panic in the program when it is run, not in the compiler when it is compiled :D
mlugg
added a commit
to mlugg/zig
that referenced
this issue
Jan 12, 2025
Zig Version
0.14.0-dev.2634+b36ea592b
Steps to Reproduce and Observed Behavior
zig build-obj main.zig
has the following outputExpected Behavior
0.13.0 prints an error and doesn't crash:
The text was updated successfully, but these errors were encountered: