Zig Version
0.14.0-dev.1550+4fba7336a
Steps to Reproduce and Observed Behavior
The following code compiles
test {
constx: ?u32=10;
_=comptimeif (x) x.f();
}That might cause a confusing bug in more complex cases, when the function f actually exists in x.
Expected Behavior
Like without comptime the compilation should fail with
error: expected type 'bool', found '?u32'
Zig Version
0.14.0-dev.1550+4fba7336a
Steps to Reproduce and Observed Behavior
The following code compiles
That might cause a confusing bug in more complex cases, when the function
factually exists inx.Expected Behavior
Like without
comptimethe compilation should fail with