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
$ stage1/zig test test.zig
$ stage2/zig test test.zig
Expected Behavior
I would expect the stage2 compiler to figure this out in the same way, stage1 does.
Actual Behavior
$ stage2/zig test test.zig
test.zig:10:10: error: value with comptime only type '@TypeOf(null)' depends on runtime control flow
else if (b)
^
test.zig:10:14: note: runtime control flow here
else if (b)
The text was updated successfully, but these errors were encountered:
Hejsil
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jun 30, 2022
Zig Version
0.10.0-dev.2803+c248af3bd
Steps to Reproduce
Expected Behavior
I would expect the stage2 compiler to figure this out in the same way, stage1 does.
Actual Behavior
The text was updated successfully, but these errors were encountered: