Open
Description
Zig Version
0.14.0
Steps to Reproduce and Observed Behavior
// test.zig
comptime {
@compileLog(@sizeOf([1]fn () void))
}
Then, in a shell, run
$ zig test test.zig
The command will then exit abruptly with a non-zero exit code. I'm getting 3.
Expected Behavior
The compiler to not crash. Given how @sizeOf(struct{ fn () void }) == 0
, it would make the most sense for @sizeOf([1]fn() void)
to also be zero